# TrapGuard Master Trap Rules (v2.0 — High-Precision Curated Signatures) # One rule per line. Blank lines and lines starting with '#' are ignored. # # Rule syntax: # passwords.txt -> Basename match at ANY path depth (/passwords.txt, /sub/passwords.txt) # /secret/admin.php -> Exact normalized path match from web root # /.git/ -> Path prefix match from web root (/.git, /.git/config, /.git/HEAD) # *.sql.gz -> Glob match on basename at any depth (supports * and ?) # */.git/* -> Glob match on full normalized path (because it contains '/') # regex:^/\.env(\.|$) -> Perl regular expression matched against normalized path # ua:artex -> User-Agent rule: substring match (glob if * or ? present) # ua:regex:^nuclei/ -> User-Agent regular expression (always case-insensitive) # query:regex:... -> Regular expression matched against the DECODED query string # exact:/foo/bar -> Explicit exact path match # # Design policy: ZERO false positives on legitimate traffic. Every active rule # targets files, exploit payloads, webshells, or offensive scanners that normal # visitors and SEO crawlers never touch. # All matching runs AFTER multi-pass URL percent-decoding, NUL stripping, # Tomcat semicolon-param stripping, and slash normalization. # ============================================================ # 1. Credential Text Files & Environment Secrets (.env family) # ============================================================ passwords.txt password.txt passwd.txt credentials.txt creds.txt secrets.txt secret.txt shadow.txt .env .env.* .envrc .secrets secrets.json secrets.yaml secrets.yml credentials.json appsettings.json appsettings.*.json web.config serviceAccountKey.json gcp-key.json .terraform.tfstate terraform.tfstate terraform.tfstate.backup terraform.tfvars kubeconfig .s3cfg .dockercfg */.docker/config.json # ============================================================ # 2. SSH / Crypto Private Keys & Cloud Credential Stores # ============================================================ id_rsa id_dsa id_ecdsa id_ed25519 *.ppk *.p12 *.pfx *.jks *.kdbx */.aws/* */.azure/* */.kube/* .git-credentials .pgpass .my.cnf .netrc .npmrc .pypirc server.key private.key .htpasswd .htpasswd.* # ============================================================ # 3. CMS / Application Config Backups & Framework Secrets # ============================================================ wp-config.php wp-config.* wp-config.php.* wp-configs.php wp-conflg.php wp-conf.php configuration.php configuration.php.* config.php.bak config.php.old config.php.save config.php.swp config.inc.php.bak config.inc settings.php.bak LocalSettings.php.bak database.yml database.yml.* params.yml props.yml */app/etc/local.xml */app/etc/env.php */sites/default/settings.php.bak */wp-content/debug.log # ============================================================ # 4. Database Dumps & Key-Value Snapshots # ============================================================ db.sql database.sql dump.sql mysql.sql data.sql users.sql dump.rdb *.sql *.sql.gz *.sql.bz2 *.sql.xz *.sql.zst *.sql.zip *.sql.tar.gz *.sqlite *.sqlite3 mysqldump.* # ============================================================ # 5. Archive Backups of the Site Itself # ============================================================ backup.zip backup.tar backup.tar.gz backup.tgz backup.rar backup.7z backups.zip backups.tar.gz backups.tar fullbackup.zip site.zip site.tar.gz www.zip www.tar.gz public_html.zip public_html.tar.gz htdocs.zip html.zip home.zip root.zip web.zip files.zip all.zip db.zip db.tar.gz wp-content-*.zip wordpress-*.zip cpanel-backup*.tar.gz *backup*.zip *backup*.tar.gz *backup*.tgz *backup*.sql # ============================================================ # 6. Version Control & Hidden Development Directories # ============================================================ */.git/* */.git-rewrite/* */.svn/* */.hg/* .DS_Store */.idea/* */.vscode/* */.sass-cache/* */.phpintel/* # ============================================================ # 7. Known Exploit Payloads, RCE Targets & PHP Webshell Probes # ============================================================ phpinfo.php */vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php */phpunit/src/Util/PHP/eval-stdin.php */lib/phpunit/phpunit/src/Util/PHP/eval-stdin.php */wp-includes/wlwmanifest.xml */kcfinder/upload.php */tinymce/plugins/filemanager/dialog.php */plugins/filemanager/dialog.php */js/tinymce/plugins/filemanager/dialog.php */_ignition/execute-solution */@fs/etc/passwd */@fs/proc/* */actuator/heapdump */actuator/env */actuator/gateway/routes */jolokia/list */boaform/admin/* */HNAP1/* */cgi-bin/luci/* */Telerik.Web.UI.WebResource.axd */Autodiscover/Autodiscover.xml */owa/auth/x.js */ecp/Current/exporttool/* */solr/admin/cores */invoker/JMXInvokerServlet */manager/text/list */console/login/LoginForm.jsp */wp-content/plugins/wp-file-manager/lib/php/connector.minimal.php */wp-content/plugins/revslider/temp/update_extract/* */wp-content/ai1wm-backups/* */dup-installer/main.installer.php # Known webshell filenames probed by automated botnets c99.php r57.php wso.php wso2.php b374k.php alfa.php alfa-rex.php xleet.php xleetshell.php marijuana.php indoxploit.php minishell.php webshell.php c100.php gel4y.php k2ll33d.php bypass403.php anonsec.php wp-l0gin.php wp-the1me.php wp-sigunq.php # ============================================================ # 8. Editor / OS Temp Artifacts # ============================================================ *.swp *.swo *.save *.orig *~ # ============================================================ # 9. Query-String Exploit Fingerprints (SQLi, LFI, JNDI, SSRF, SSTI, XXE, RCE) # ============================================================ query:regex:(?:\.\./){2,} query:regex:(?:\.\.\\){2,} query:regex:/etc/passwd query:regex:/proc/self/environ query:regex:windows/win\.ini query:regex:union(?:\s|\+|%20){1,3}(?:all(?:\s|\+|%20){1,3})?select query:regex:information_schema query:regex:into(?:\s|\+|%20)+(?:dump)?file query:regex:(?:eval|assert|system|passthru|shell_exec|exec)(?:\(|%28) query:regex:\$\{jndi:(?:ldap|ldaps|rmi|dns|iiop|corba|nds|http): query:regex:(?:php://(?:filter|input)|expect://|phar://|data://text/plain) query:regex:(?:169\.254\.169\.254|metadata\.google\.internal|100\.100\.100\.200) query:regex: