feat: add built-in yaml modules for security scanning

This commit is contained in:
vmfunc
2026-01-03 05:57:10 -08:00
parent 01a10c6a2f
commit a5ea29b88d
8 changed files with 362 additions and 0 deletions
+45
View File
@@ -0,0 +1,45 @@
# Backup Files Detection Module
id: backup-files
info:
name: Backup Files Detection
author: sif
severity: medium
description: Detects common backup files that may expose sensitive information
tags: [backup, exposure, misconfiguration, recon]
type: http
http:
method: GET
paths:
- "{{BaseURL}}/backup.sql"
- "{{BaseURL}}/backup.zip"
- "{{BaseURL}}/backup.tar.gz"
- "{{BaseURL}}/database.sql"
- "{{BaseURL}}/db.sql"
- "{{BaseURL}}/dump.sql"
- "{{BaseURL}}/.env"
- "{{BaseURL}}/.env.backup"
- "{{BaseURL}}/config.php.bak"
- "{{BaseURL}}/web.config.bak"
- "{{BaseURL}}/wp-config.php.bak"
- "{{BaseURL}}/settings.py.bak"
threads: 5
matchers:
- type: status
status:
- 200
- type: regex
part: body
regex:
- "CREATE TABLE"
- "INSERT INTO"
- "DB_PASSWORD"
- "APP_KEY"
- "SECRET_KEY"
- "database_password"
condition: or
+39
View File
@@ -0,0 +1,39 @@
# Exposed Git Repository Detection Module
id: git-exposed
info:
name: Exposed Git Repository
author: sif
severity: high
description: Detects exposed .git directories that may leak source code
tags: [git, exposure, source-code, misconfiguration]
type: http
http:
method: GET
paths:
- "{{BaseURL}}/.git/HEAD"
- "{{BaseURL}}/.git/config"
- "{{BaseURL}}/.git/index"
matchers:
- type: word
part: body
words:
- "ref: refs/"
- "[core]"
- "repositoryformatversion"
condition: or
- type: status
status:
- 200
extractors:
- type: regex
name: git_branch
part: body
regex:
- "ref: refs/heads/(.+)"
group: 1