|
1 | | -# Snake Containment - A security scanner |
| 1 | +# Snake Containment - A static security scanner written in Python |
2 | 2 |
|
3 | | -- [ ] Handle errors consistently across all files |
4 | | -- [ ] Write unit tests |
5 | | - |
6 | | -TODO/FIXME Scanner - Find security-related TODOs |
7 | | - |
8 | | -Look for comments like # TODO: add authentication, # FIXME: remove this hack |
9 | | -Could flag security debt |
10 | | - |
11 | | -Weak Crypto Scanner - Detect weak cryptographic practices |
12 | | - |
13 | | -MD5, SHA1 usage, hardcoded salts, weak key sizes |
14 | | -Look for hashlib.md5(), DES, small RSA keys |
15 | | - |
16 | | -Medium Complexity: |
| 3 | +Code scanner in a github action that will report findings in the repository's security tab. |
17 | 4 |
|
18 | | -Environment Variable Scanner - Find missing .env patterns |
| 5 | +## Further development |
19 | 6 |
|
20 | | -Look for os.getenv() without defaults |
21 | | -Check if .env.example exists but .env doesn't |
22 | | -Flag potentially missing config |
23 | | - |
24 | | -SQL Injection Scanner - Basic string concatenation detection |
25 | | - |
26 | | -Look for SQL queries built with string formatting |
27 | | -Pattern: f"SELECT * FROM users WHERE id = {user_id}" |
28 | | - |
29 | | -Dockerfile Security Scanner - Check for insecure Docker practices |
30 | | - |
31 | | -USER root, missing USER statements, --privileged flags |
32 | | -Only scan Dockerfile and docker-compose.yml files |
33 | | - |
34 | | -## To run |
| 7 | +- [ ] Handle errors consistently across all files |
| 8 | +- [ ] Write unit tests |
| 9 | +- [ ] Weak Crypto Scanner - Detect weak cryptographic practices |
| 10 | + - MD5, SHA1 usage, hardcoded salts, weak key sizes |
| 11 | + - Look for hashlib.md5(), DES, small RSA keys |
| 12 | +- [ ] Environment Variable Scanner - Find missing .env patterns |
| 13 | + - Look for os.getenv() without defaults |
| 14 | + - Check if .env.example exists but .env doesn't |
| 15 | + - Flag potentially missing config |
| 16 | +- [ ] SQL Injection Scanner - Basic string concatenation detection |
| 17 | +- [ ] Dockerfile Security Scanner - Check for insecure Docker practices |
| 18 | + - USER root, missing USER statements, --privileged flags |
| 19 | + - Only scan Dockerfile and docker-compose.yml files |
| 20 | + |
| 21 | +## Running locally |
35 | 22 |
|
36 | 23 | source .venv/bin/activate |
37 | 24 |
|
|
0 commit comments