Commit ec06b46
committed
test(security): add E2E tests for command injection and credential sanitization
Adds two new Brev E2E test suites targeting the vulnerabilities fixed by
PR NVIDIA#119 (Telegram bridge command injection) and PR NVIDIA#156 (credential
exposure in migration snapshots + blueprint digest bypass).
Test suites:
- test-telegram-injection.sh: 8 tests covering command substitution,
backtick injection, quote-breakout, parameter expansion, process
table leaks, and SANDBOX_NAME validation
- test-credential-sanitization.sh: 13 tests covering auth-profiles.json
deletion, credential field stripping, non-credential preservation,
symlink safety, blueprint digest verification, and pattern-based
field detection
These tests are expected to FAIL on main (unfixed code) and PASS
once PR NVIDIA#119 and NVIDIA#156 are merged.
Refs: NVIDIA#118, NVIDIA#119, NVIDIA#156, NVIDIA#8131 parent 4cfc3b3 commit ec06b46
4 files changed
Lines changed: 1263 additions & 0 deletions
File tree
- .github/workflows
- test/e2e
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
178 | 188 | | |
0 commit comments