This project implements a remediation module workflow for Cisco NGFW environments.
When a correlation rule is triggered, the module extracts:
- source IP
- destination IP
- service port
Then it adds a fastpath prefilter rule on the triggering NGFW's corresponding ACP/prefilter policy via API.
If your goal is to install the remediation module directly on FMC:
- Download package: ngfw_prefilter_fastpath_module.tar.gz
- Open FMC: Policies > Actions > Modules
- Upload the package and create a module instance
- Configure FMC connection and target prefilter policy name
- Bind remediation type (
connection_fastpath,connection_analyze, orconnection_block) to correlation policy response
Detailed installation and troubleshooting guide:
- A production-oriented Python reference implementation
- Event payload schema and validation
- FMC API client with retry support
- Idempotent rule creation logic
- Test scaffolding and CI workflow
- GitHub-ready documentation and contribution files
- Correlation event is received.
- Event fields are normalized into remediation conditions.
- Module identifies target FMC and prefilter policy for the event's NGFW.
- Module checks existing prefilter rules (dedup guard).
- Module creates a fastpath rule if needed.
- Module writes an audit-friendly result.
See detailed design in docs/architecture.md.
python3 -m venv .venv
source .venv/bin/activatepip install -e .[dev]cp examples/config.example.yaml config.yamlFill in FMC host, credentials/token, domain UUID, and policy mapping.
ngfw-rm run --config config.yaml --event-file examples/event.sample.json --dry-runngfw-rm run --config config.yaml --event-file examples/event.sample.jsondevice_id(triggering NGFW identifier)src_ipdst_ipservice_portprotocol(optional; defaults totcp)
- Prefer token auth over hardcoded username/password.
- Store secrets in environment variables or secret manager.
- Use least-privilege API role in FMC.
See SECURITY.md for details.
.
├── src/ngfw_prefilter_rm/
├── tests/
├── docs/
├── examples/
└── .github/workflows/
This is a reference implementation. Validate endpoint details against your FMC version.