Skip to content

fix: inbound traffic direction on PAN-OS and Check Point - #118

Merged
404SecNotFound merged 1 commit into
mainfrom
claude/panos-inbound-interfaces
Oct 19, 2026
Merged

404SecNotFound merged 1 commit into
mainfrom
claude/panos-inbound-interfaces

Conversation

@404SecNotFound

Copy link
Copy Markdown
Owner

Summary

The follow-up recorded when REP-053 shipped (#115), widened by one finding made in the same pass.

PAN-OS rendered every traffic record as egress. The engine marks an internet-to-inside session by reversing the interface pair (src_intf/dst_intf, trandisp=dnat). FortiGate renders that pair; PAN-OS ignored it, so inbound sessions (REP-021, REP-043's inbound stage, REP-053) carried cs4=trust cs5=untrust, the egress interface pair, and the egress sourceTranslatedAddress. They now carry cs4=untrust cs5=trust, the interfaces swapped, and no source NAT. The destination NAT a real inbound session would carry is not emitted.

Check Point said every session entered from the internal zone. Found while fixing the above: inzone was the constant Internal. An inbound session now renders inzone=External outzone=Internal. deviceDirection was already right (it is derived from dst).

Both profiles read the mark through one helper, profiles.base.is_inbound. FortiGate is unchanged. No golden line is inbound, so no golden line moved.

Verification

  • tests/test_inbound_direction.py: renders real plans of REP-021, REP-043 and REP-053 at every preset on PAN-OS and Check Point, checks FortiGate is unchanged, and checks egress records (REP-001, REP-005, REP-043's outbound legs) keep the egress shape. A vacuity guard asserts each technique emits inbound traffic.
  • Positive control: with the fix absent, all 18 PAN-OS and Check Point inbound cases failed; the egress and FortiGate cases passed.
  • Full Python suite green; ruff, black --check, mypy replicant clean.

Documentation impact

  • docs/paloalto-cef-reference.md, docs/checkpoint-cef-reference.md: the inbound shape, marked [Unverified] because no golden line covers it.

  • docs/catalog-review-2026-10-07.md: dated implementation note closing the follow-up under backlog item 3.

  • CLAUDE.md: the REP-053 note records the fix and the helper.

  • CHANGELOG.md Unreleased.

  • Unaffected: the catalog (the direction text already says inbound; the vendors now agree with it), docs/run-manifest.md, the web UI.

  • Maintained documentation changed alongside the behavior, or unaffected surfaces are explained above.

  • CHANGELOG.md records the operator-visible change.

  • Historical decision records were preserved or received a dated addendum.

  • Documentation claims were checked against the implemented behavior.

Scope boundary

  • The inbound shape on both vendors is [Unverified] until a live capture, like the rest of those references.
  • Destination NAT on inbound accepts is not modelled on any vendor.
  • Nothing here observes a rule fire; the launch gate in CLAUDE.md is unchanged.

Generated by Claude Code

PAN-OS rendered every traffic record with the egress zones, interfaces and
source NAT, so inbound sessions (REP-021, REP-043's inbound stage, REP-053)
looked like egress. Check Point rendered inzone=Internal for every session.
Both now read the engine's reversed interface pair through
profiles.base.is_inbound. FortiGate is unchanged; no golden line moved.

Guard: tests/test_inbound_direction.py renders real plans at every preset.
With the fix reverted, all 18 PAN-OS and Check Point inbound cases failed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NtL63gY2LQZtZwgNwDM8vs
@404SecNotFound
404SecNotFound merged commit 97de7b6 into main Oct 19, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants