Individual skill
detecting-port-scanning-with-fail2ban
Configures Fail2ban with custom filters and actions to detect port scanning activity, SSH brute force attempts, and network reconnaissance, automatically banning offending IP addresses and alerting security teams to suspicious network probing.
skills/detecting-port-scanning-with-fail2ban/SKILL.md
Source commit 54a798831d2266a3ca61ce68a7acb80b81160d57
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- Yes
- Repository scan complete
- No
- Skill scan complete
- No
- Observed behavior
- Network or broad shell
- Last checked
- Nov 9, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 35,862
- Repository last updated
- Aug 31, 2026
- License
- Apache-2.0
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- ai-agents Repository topic
- claude-code Repository topic
- cybersecurity Repository topic
- incident-response Repository topic
- mitre-attack Repository topic
- penetration-testing Repository topic
- red-team Repository topic
- security Repository topic
- cloud-security Repository topic
- malware-analysis Repository topic
- network-security Declared skill tag
- fail2ban Declared skill tag
- port-scanning Declared skill tag
- intrusion-prevention Declared skill tag
- automated-defense Declared skill tag
- security Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
LICENSEasset · 11,255 bytesSKILL.mdcore · 12,957 bytesSKILL.mdcore · 12,957 bytesSKILL.mdcore · 12,957 bytesSKILL.mdcore · 12,957 bytesSKILL.mdcore · 12,957 bytesSKILL.mdcore · 12,957 bytesSKILL.mdcore · 12,957 bytesSKILL.mdcore · 12,957 bytesSKILL.mdcore · 12,957 bytesSKILL.mdcore · 12,957 bytesSKILL.mdcore · 12,957 bytesreferences/api-reference.mddoc · 2,044 bytesscripts/agent.pyruns · 8,442 bytes
Read excerpt
# Detecting Port Scanning with Fail2ban
## When to Use
- Automatically blocking IP addresses that perform port scans against internet-facing servers
- Defending SSH, HTTP, FTP, and other services against brute force attacks with automated IP banning
- Creating custom detection filters for organization-specific attack patterns in log files
- Reducing noise from automated scanning bots before traffic reaches IDS/IPS for deeper analysis
- Implementing defense-in-depth by adding host-based automated response to network monitoring
**Do not use** as the sole network security control, for protecting against distributed attacks from many source IPs, or as a replacement for proper firewall rules and network segmentation.
## Prerequisites
- Fail2ban 0.11+ installed (`fail2ban-client --version`)