babel
aien-dev/babel
Brought by drakestapleton
babel / SECURITY.md
| 1 | # Security |
| 2 | |
| 3 | Report vulnerabilities privately through GitHub security advisories on this repository (Security → Report a vulnerability). Do not report them in public issues. |
| 4 | |
| 5 | ## Threat model |
| 6 | |
| 7 | Babel reads untrusted source trees and runs toolchains on code derived from them: |
| 8 | |
| 9 | - the original C, compiled and executed as the differential oracle; |
| 10 | - the generated target, built and executed. |
| 11 | |
| 12 | **Running babel on a tree executes code from that tree.** Run it only on code you would build yourself, or inside a sandbox or VM. |
| 13 | |
| 14 | What babel itself does: |
| 15 | |
| 16 | - It writes only under `<input>.babel/`. It does not follow symlinks or walk hidden entries. |
| 17 | - It starts child processes with an explicit environment (through `/usr/bin/env`). It uses no shell, so input text is never parsed as shell. |
| 18 | - It runs the go toolchain with `GOPROXY=off` and `GOTOOLCHAIN=local`, and cargo with `CARGO_NET_OFFLINE=true`. |
| 19 | - It refuses to run unless the adapters' native omc has the pinned sha256. |