This release adds 3 notable features for engineering teams evaluating rollout.
Published 1mo
Network Security
✓ No known CVEs patched
✓ No known CVEs patched in this version
Topics
cli
collaborate
security
darknet
github
linux
+13 more
networking
nftables
onion-routing
opsec
penetration-testing
pentesting
privacy
proxy
python
systemd
tor
traffic-routing
transparent-proxy
Affected surfaces
auth
rbac
breaking_upgrade
Summary
AI summaryUpdates 0.4.5] - 2026-06-23, Redirected, and BYOD across a mixed release.
Full changelog
[0.4.5] - 2026-06-23
Added
- Zero-Leak Shutdown (Graceful Teardown with Active Socket Slaughter): Implemented a multi-stage active socket termination and lockdown sequence during
ttp stopto eliminate in-flight cleartext traffic leaks. Before final firewall ruleset removal, a temporary lockdown drop rule is applied (exempting the Tor daemon), followed by an Active Socket Slaughter phase injecting TCP Reset (meta l4proto tcp counter reject with tcp reset) and standard reject rules with a 1.5-second micro-delay. This actively terminates pending local connections before lowering the firewall. - Connection Tracking Flush: Added automatic Netfilter connection tracking state invalidation via
conntrack -F(when theconntrackutility is available) to terminate active TCP/UDP streams before final firewall ruleset removal. - IPv6 Force Disable Flag: Added
--no-ipv6CLI option tostartandrestartcommands, allowing users to force drop all outbound IPv6 traffic vianftablesrules (meta nfproto ipv6 drop) to prevent leaks even if the host machine supports IPv6. - System Integrity Watchdog Auto-Healing for IPv6: Integrated
--no-ipv6state checking into the session watchdog. During auto-healing operations, the watchdog reads the state lock and correctly re-applies firewall, DNS, and Tor configurations with IPv6 disabled if configured. - CLI Reports for IPv6 Status: Updated
statusandcheckcommands to explicitly show the status of IPv6 traffic routing:Enabled (Redirected),Disabled (Force Dropped), orDisabled (Not supported by host). - Bring Your Own Daemon (BYOD) Mode: Added
--external-daemonand--tor-uidCLI options to bothstartandrestartcommands, allowing TTP to run on systemd-less environments (such as Alpine Linux or Void Linux) and inside lightweight Docker containers. - Passive Health Check & UID Parser: Implemented socket owner auto-detection reading
/proc/net/tcpand/proc/net/tcp6to find Tor's numeric UID (resolving firewall loops), alongside passive TCP/UDP port checks on the target ports when using--external-daemon. - Network Sandbox Engine (NSE) Integration: Fully integrated the PyPI package
network-sandbox-engineandpyroute2for automated ruleset tests. - Zero-Leak PCAP Ruleset Test: Added
tests/test_nse_rules.pyto validatenftablesschemas in isolated namespaces, using an asynchronous Scapy sniffer to assert zero cleartext packets escaping to the WAN. - Chaos Monkey Stress Test: Introduced
tests/chaos_monkey.pyto verify watchdog/killswitch auto-healing resilience under injected failures. - Architectural Decision Records (ADRs): Created a dedicated
docs/decisions/directory containing records for all major architectural decisions (0001 through 0008) made since project inception. - Split Tunneling by UID/GID: Added
--bypass-userand--bypass-groupoptions to thestartandrestartCLI commands. These options accept usernames or groupnames (supporting individual values, comma-separated lists, or multiple flags), resolve them dynamically to numeric UIDs/GIDs via standard Pythonpwd/grplibraries, and store them in the session lock filettp.lock. - Bypass Firewall Exceptions: Generates
meta skuid <uid> acceptandmeta skgid <gid> acceptnftables rules placed at the top of the output, prerouting, and filter_out chains. This allows bypassed users and groups to access the cleartext internet directly, bypassing both Tor NAT redirection and the emergency killswitch. - Watchdog Bypass Auto-Healing: Updated the background watchdog daemon to read the bypassed users/groups from the session lock file, dynamically verify that their firewall bypass rules are active in the running nftables ruleset, and trigger auto-healing to restore them if missing or modified.
- Strict Lock Permissions: The volatile lock file
/run/ttp/ttp.lockis now created/updated with strict0o644permissions to protect active session state from unauthorized write access. docs/interfaces.md(OSPS-SA-02.01): New authoritative reference for all external interfaces — full CLI command table with options, exit codes and root-privilege requirements; Tor integration (managed ports, control protocol,torrcdirectives, pluggable transports); system integration (nftables table/chain/rule-order, DNS bind-mount overlay, volatile systemd units, filesystem path inventory); and external network endpoints used for verification.docs/bridges.md: New user guide for obtaining, configuring, and verifying Tor Bridges and Pluggable Transports (obfs4,snowflake) in TTP.docs/documentation-policy.md: New repository policy specifying required tests, changelog, and component documentation updates for each type of repository modification.docs/security-assessment.md(OSPS-SA-03.01): New STRIDE threat model and risk assessment covering all TTP components (firewall.py,dns.py,tor_install.py/tor_control.py,state.py,watchdog.py,cli.py), trust boundary diagram, known limitations table with severity ratings, supply chain security controls, and a 16-item security controls summary matrix.MAINTAINERS.md: New governance document listing Project Lead, a## Project Rolestable mapping each operational role (Code Reviewer, Release Manager, Security Officer, CI/CD Maintainer) to its current holder, access to sensitive resources, merge policy, and maintainer onboarding/offboarding process.DEPENDENCIES.md: New dependency policy document covering runtime and dev/build Python dependencies with version constraints and licenses, system-level dependencies, optional dynamic dependencies (SELinux tools, pluggable transports), and policies for vetting, version pinning, vulnerability monitoring (pip-audit --path .), and upgrading.
Changed
README.mdOptimization: Replaced the redundant and detailedHow It Workssection with a high-level summary and direct link to the authoritativedocs/architecture.mddocumentation.- RPM Packaging Builder: Added
--nodepstorpmbuildinpackaging/build_rpm.shto prevent build-time dependency checking failures in Debian/Ubuntu-based CI environments (e.g. GitHub Actions runners) that lack a populated RPM database.
Fixed
- Garbage Collection Namespace Bug: Fixed premature namespace teardown in integration tests by maintaining a reference to the
ns_sandboxgenerator fixture context. - Multicast Filtering in Leak sniffer: Added IGMP/multicast/NDP packet exclusions to prevent false-positive leak assertions in ruleset tests.
Weekly OSS security release digest.
The CVE patches and breaking changes that affected production tools this week. One email, every Sunday.
No spam, unsubscribe anytime.
Share this release
About TTP 0.3.0
All releases →Related context
Related tools
Beta — feedback welcome: [email protected]