Repository navigation
File probes and uploaded PHP shells - #4
Merged
Merged
Conversation
…splits A 4xx on code, config, data or a backup by name is +3, the third different one within an hour a strike (probe_files, probe_window). PHP run from an uploads folder and image names with a PHP extension are signatures. Benign banned stays 0 on every split and on LogarX; LogarX attackers 124 -> 126 of 126. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01NPVFJFY41846T15QqxmGW2
…ogs say otherwise Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01NPVFJFY41846T15QqxmGW2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Iteration 5 of the benchmark loop.
Changes
File probes. A 4xx on a path that names code, config, data or a backup (
/Admin.asp,/db.sql,/config.json, dotfiles) scores +3, so the model judges it. A client's third different file probe within an hour adds +3 more, which is a strike. This targets scanners that pace themselves between page views. New settings:probe_files(default 3) andprobe_window(default 3600)..php,.sql,.envand.json./press-kit.ziplink drew a strike. Archives with backup names are still caught by thebackup-filesignature.probe_files = 2caught one more stealth client on dev. I kept 3 because there are no real logs yet showing how visitors behave on a site that moved off PHP and still gets old.phplinks.Uploaded shells. Two new signatures, both weight 6, so the model makes the final call:
php-in-uploads: PHP run from an uploads, avatars, attachments or tmp folder.double-extension: names likex.php.jpg.PHP-CGI argument injection,
php://input/data://, phpuniteval-stdinand ThinkPHP were already caught at weight 10. I checked them on hand-written lines, not captured traffic.Results (rules only)
Caveats:
Unit tests: 129 checks, 0 failed.
Generated by Claude Code