mirror of
https://github.com/lunchcat/sif.git
synced 2026-08-02 00:37:38 -07:00
feat: add built-in yaml modules for security scanning
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user