Demo video: [YOUTUBE_URL] · Live demo: https://7bs6otuwci.execute-api.ap-southeast-2.amazonaws.com · Code: https://github.com/natrajexplore/necromancer

Inspiration

Every enterprise has a graveyard: Cisco PIX, ASA 8.x and IOS 12 firewalls that went end-of-life years ago but still guard production. I have spent 10 years as a network security engineer, and I keep seeing the same thing. These boxes stay because nobody can prove that a rewrite of thousands of rules behaves the same.

Manual migrations break things quietly: a security-level permit nobody wrote down, an ACL that referenced a NATed address, an ICMP rule widened to "ping", an IPv6 line that simply vanished. Kiroween's Resurrection category was the excuse to raise these dead configs properly, with evidence instead of a leap of faith.

What it does

NECROMANCER runs a five-step ritual on a dead firewall config:

  1. Exhume. Parses Cisco PIX 6.x, ASA 7.x to 8.2 and IOS 12.x into a vendor-neutral policy model. Secrets are redacted first, and every input line is classified, so nothing disappears silently.
  2. Autopsy. Finds ghost rules: shadowed, redundant, overly broad, insecure services, unused objects, insecure management and unfiltered interfaces.
  3. Resurrect. Emits a like-for-like Palo Alto PAN-OS candidate config. Optional zero-trust tightening is a separate artifact, and every behavioral difference goes into an exorcism ledger for a named person to accept or reject.
  4. Proof of Life. A property-based oracle (Hypothesis) replays boundary-biased generated packets against the old and the new policy, plus hand-verified golden flows. If they ever disagree, it shows the single smallest packet that does: the packet that refused to rest.
  5. Verdict. Six validation gates (G1 to G6) turn the evidence into GO, CONDITIONAL or NO-GO, with the blocking reasons, a cutover and rollback runbook, and a Grimoire evidence report a change advisory board can review.

On the bundled pix-2006-hq sample: detection confidence 0.95, 100% coverage, 21 findings (AUT-0008 is critical: telnet from outside to the web server), a 159-line PAN-OS candidate, 1,899 generated flows with zero divergences and 16 of 16 golden flows passing. The baseline verdict is NO-GO until a named approver decides ledger entry LED-0001 and the critical finding is dealt with. That is the point: the tool never hands out a silent GO.

The same engine is available through a React "graveyard" UI, a necro CLI, a FastAPI /v1 API, and an MCP server with five tools (exhume, autopsy, resurrect, prove, gate).

How we built it

I built it with Kiro CLI, spec first. Three specs (necro-engine, migration-governance, graveyard-ui) hold 126 acceptance criteria in EARS form, and 53 of 95 commits carry a kiro-task trailer linking them to a spec task. Eight steering documents encode the exact ACL, NAT and zone semantics. Six hooks run the property tests on save and keep the specs traceable. Five custom agents and an MCP server round it out.

  • Backend: Python 3.12, FastAPI, Pydantic, Hypothesis (used at runtime by the oracle, not only in tests), the MCP Python SDK.
  • Frontend: React, TypeScript, Vite, Tailwind CSS, TanStack Query, with a haunted graveyard design.
  • Hosting: one AWS Lambda (FastAPI through Mangum) behind an API Gateway HTTP API, defined in an AWS SAM template. No login, nothing persisted, synthetic configs only.
  • Quality: 2,240 backend tests, 98.63% coverage, 94 property-based tests at 5,000 examples each, 58 hand-verified golden flows, a 10-mutant mutation suite (all caught), 124 frontend unit tests, 9 Playwright end-to-end tests with axe, and Lighthouse 100 in all four categories.

Challenges we ran into

  • Migration semantics are full of traps. ASA security-level implicit permits, pre-8.3 NAT (ACLs use the mapped address), destination zones derived from the route table, IOS established with no PAN-OS equivalent, and protocol-keyed port names (514/tcp is rsh, 514/udp is syslog). Each one is pinned in steering and tested with golden flows.
  • Traffic to the device itself. The first evaluator permitted every flow to the firewall's own addresses. ACLs don't filter to-the-box traffic; management commands do. Fixing it against the steering document turned those commands into PAN-OS interface management profiles.
  • Testing the tester. The mutation suite exposed three gaps in the oracle itself, including rule coverage that depended on the random seed. The oracle now sweeps every witness flow before the random search.
  • Secret redaction. Several TACACS, RADIUS, AAA and username forms leaked through at first. Tests and review found them, and each form now has a fixture.

Accomplishments that we're proud of

  • The equivalence proof is a product feature, not a test: change advisory boards get evidence, and a deliberately broken candidate fails with a concrete counterexample.
  • Tightening never contaminates the baseline. The like-for-like verdict and the tightened verdict are separate, and both are in the report.
  • A complete product, not a proof of concept: three interfaces on one service layer, accessibility tested with axe, and a live demo judges can use with no keys.

What we learned

Spec-driven development pays off most when the domain has sharp edges. When a requirement was missing (gating the tightened artifact), writing the acceptance criteria first and then the code kept the change honest. Steering turned my firewall knowledge into rules Kiro followed every session. Property-based testing found bugs I would not have written unit tests for.

What's next for NECROMANCER

  • ASA 8.3 to 9.x (object NAT, global ACLs) and PAN-OS NAT rule emission
  • Hit-count import, so unused rules are judged on real traffic
  • PDF and CSV export of the Grimoire report
  • More resurrections: a Check Point parser and a Cisco TrustSec SGACL emitter.

Built With

  • amazon-api-gateway
  • aws-lambda
  • aws-sam
  • axe-core
  • fastapi
  • hypothesis
  • kiro
  • mangum
  • mcp
  • playwright
  • pydantic
  • pytest
  • python
  • react
  • tailwindcss
  • tanstack-query
  • typescript
  • uvicorn
  • vite
  • vitest
Share this project:

Updates

Submission history