8 Commits

Author SHA1 Message Date
ek0ms savi0r 4c605b3093 Merge pull request 'Add flock_tap test suite and .gitignore' (#2) from Trilltechnician/Flock_SCAN-fix:tests-hygiene/flock-tap into main
Reviewed-on: #2
2026-07-21 21:08:20 +00:00
leetcrypt 4081e55ba8 Add flock_tap test suite and .gitignore
Adds pytest coverage for flock_tap.py's parsing, classification, and
byte/FRP/cloud-IP accounting, plus a .gitignore for Python caches and
capture/scan output artifacts.

The packet-level tests double as regression guards for the recently fixed
detection bugs (FRP auth-payload firing on data segments not just SYN,
no bytes_up inflation, and known-Flock-IP correlation); they fail against
the pre-fix code and pass after it. scapy-dependent tests skip cleanly when
scapy is unavailable.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-07-20 08:57:44 -07:00
ek0ms savi0r 0817ab9713 Merge pull request 'Fix FRP payload detection, byte accounting, and cloud-IP correlation in flock_tap' (#1) from Trilltechnician/Flock_SCAN-fix:fix/flock-tap-detection-bugs into main
Reviewed-on: #1
2026-07-20 06:05:02 +00:00
leetcrypt 20d30815a3 Fix FRP payload detection, byte accounting, and cloud-IP correlation in flock_tap
- Move the FRP auth-payload scan out of the SYN-only branch. SYN packets carry
  no payload, so payload-based FRP detection never fired; it now runs on every
  TCP segment where the frp/auth/proxy_type bytes actually appear.
- Remove the per-packet `bytes_up += 64` approximation in on_tcp_connect, which
  double-counted against real ip.len accounting and corrupted bandwidth stats.
- Correlate connections against known Flock cloud IPs (static seed list + IPs
  learned from DNS answers) so cameras that reach cloud IPs without their own
  DNS/SNI are classified CLOUD_CONNECTED.
- Match the Flock auth0 tenant in DNS detection, consistent with the SNI path.
- Install a SIGINT handler so the report is always produced on Ctrl+C.
- Drop unused scapy TLS imports (SNI is parsed manually).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-07-19 22:25:40 -07:00
ek0ms savi0r 61d21be3f9 Update README.md 2026-07-19 06:02:17 +00:00
ek0ms savi0r e6c41a69a6 Upload files to "modules" 2026-07-19 06:01:32 +00:00
ek0ms savi0r 587f14697e Upload files to "/" 2026-07-19 06:01:00 +00:00
ek0ms savi0r aa9eb3e7f6 Initial commit 2026-07-19 06:00:07 +00:00