Repository navigation
rule: add check for analysis tools listening on local ports (#1181) - #1202
Merged
williballenthin merged 2 commits intoOct 21, 2026
Merged
williballenthin merged 2 commits into
williballenthin merged 2 commits into
Conversation
Resolves mandiant#1181 by checking GetTcpTable for local analysis tools using a threshold of 3 or more ports.
Comment on lines
+27
to
+33
| - operand[1].number: 8888 = Fiddler / Charles Proxy | ||
| - operand[1].number: 8080 = Burp Suite / HTTP proxy | ||
| - operand[1].number: 9999 | ||
| - operand[1].number: 8000 | ||
| - operand[1].number: 8443 = HTTPS proxy | ||
| - operand[1].number: 5000 | ||
| - operand[1].number: 31337 = Back Orifice / sandbox sinkhole |
Collaborator
There was a problem hiding this comment.
would you please add description for all, not just some, of the ports?
Contributor
Author
There was a problem hiding this comment.
@williballenthin Done! Added descriptions for all 7 ports and pushed the update.
williballenthin
approved these changes
Oct 21, 2026
Collaborator
|
thanks @ninadgowdru |
Contributor
Author
|
Thank you so much, @williballenthin ! I really appreciate your patience and guidance on this one. I learned a lot! |
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.
Resolves #1181
Summary
Adds
check for analysis tools listening on local portsunderanti-analysisto detect when a binary inspectsGetTcpTablefor common analysis/proxy/debug listening ports (8080,8888,9999,8000,8443,5000,31337).Uses a
3 or more:threshold so that a standalone check for common ports like8080does not trigger a false positive.Validation
5e17360d32e9b272bb7e1b97c8e4dca34622ec9ce08fd240fe2758cc3f67dc4a: matches at0x1400016FB.scripts/lint.py --thorough -t "check for analysis tools listening on local ports": all checks passed.