Skip to content

Commit 99bd8d4

Browse files
ngxsondillon-blake
authored andcommitted
security: narrow down the scope of what we consider a vulnerability (ggml-org#18752)
* security: narrow down the scope of what we consider a vulnerability * fix typo
1 parent 68ee9c0 commit 99bd8d4

1 file changed

Lines changed: 37 additions & 17 deletions

File tree

SECURITY.md

Lines changed: 37 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,48 @@
11
# Security Policy
22

3+
- [**Reporting a vulnerability**](#reporting-a-vulnerability)
4+
- [**Requirements**](#requirements)
5+
- [**Covered Topics**](#covered-topics)
36
- [**Using llama.cpp securely**](#using-llamacpp-securely)
47
- [Untrusted models](#untrusted-models)
58
- [Untrusted inputs](#untrusted-inputs)
69
- [Data privacy](#data-privacy)
710
- [Untrusted environments or networks](#untrusted-environments-or-networks)
811
- [Multi-Tenant environments](#multi-tenant-environments)
9-
- [**Reporting a vulnerability**](#reporting-a-vulnerability)
12+
13+
## Reporting a vulnerability
14+
15+
If you have discovered a security vulnerability in this project that falls inside the [covered topics](#covered-topics), please report it privately. **Do not disclose it as a public issue.** This gives us time to work with you to fix the issue before public exposure, reducing the chance that the exploit will be used before a patch is released.
16+
17+
Please disclose it as a private [security advisory](https://github.com/ggml-org/llama.cpp/security/advisories/new).
18+
19+
A team of volunteers on a reasonable-effort basis maintains this project. As such, please give us at least 90 days to work on a fix before public exposure.
20+
21+
> [!IMPORTANT]
22+
> For collaborators: if you are interested in helping out with reviewing privting security disclosures, please see: https://github.com/ggml-org/llama.cpp/discussions/18080
23+
24+
## Requirements
25+
26+
Before submitting your report, ensure you meet the following requirements:
27+
28+
- You have read this policy and fully understand it.
29+
- AI is only permitted in an assistive capacity as stated in [AGENTS.md](AGENTS.md). We do not accept reports that are written exclusively by AI.
30+
- Your report must include a working Proof-of-Concept in the form of a script and/or attached files.
31+
32+
Maintainers reserve the right to close the report if these requirements are not fulfilled.
33+
34+
## Covered Topics
35+
36+
Only vulnerabilities that fall within these parts of the project are considered valid. For problems falling outside of this list, please report them as issues.
37+
38+
- `src/**/*`
39+
- `ggml/**/*`
40+
- `gguf-py/**/*`
41+
- `tools/server/*` (note: Web UI is not covered)
42+
43+
Note that none of the topics under [Using llama.cpp securely](#using-llamacpp-securely) are considered vulnerabilities in LLaMA C++.
44+
45+
For vulnerabilities that fall within the `vendor` directory, please report them directly to the third-party project.
1046

1147
## Using llama.cpp securely
1248

@@ -55,19 +91,3 @@ If you intend to run multiple models in parallel with shared memory, it is your
5591
3. Model Sharing: In a multitenant model sharing design, tenants and users must understand the security risks of running code provided by others. Since there are no reliable methods to detect malicious models, sandboxing the model execution is the recommended approach to mitigate the risk.
5692

5793
4. Hardware Attacks: GPUs or TPUs can also be attacked. [Researches](https://scholar.google.com/scholar?q=gpu+side+channel) has shown that side channel attacks on GPUs are possible, which can make data leak from other models or processes running on the same system at the same time.
58-
59-
## Reporting a vulnerability
60-
61-
Beware that none of the topics under [Using llama.cpp securely](#using-llamacpp-securely) are considered vulnerabilities of LLaMA C++.
62-
63-
<!-- normal version -->
64-
However, If you have discovered a security vulnerability in this project, please report it privately. **Do not disclose it as a public issue.** This gives us time to work with you to fix the issue before public exposure, reducing the chance that the exploit will be used before a patch is released.
65-
66-
Please disclose it as a private [security advisory](https://github.com/ggml-org/llama.cpp/security/advisories/new).
67-
68-
Please note that using AI to identify vulnerabilities and generate reports is permitted. However, you must (1) explicitly disclose how AI was used and (2) conduct a thorough manual review before submitting the report.
69-
70-
A team of volunteers on a reasonable-effort basis maintains this project. As such, please give us at least 90 days to work on a fix before public exposure.
71-
72-
> [!IMPORTANT]
73-
> For collaborators: if you are interested in helping out with reviewing privting security disclosures, please see: https://github.com/ggml-org/llama.cpp/discussions/18080

0 commit comments

Comments
 (0)