You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Static review of snapshot 35fb3a8 found layered controls in the Compose path: host and agent firewall rules, a Squid domain/SNI policy, an iptables-init readiness gate, seccomp, capability reductions, and default Docker-socket masking. The most consequential documented residual risks are unrestricted query names through an allowed DNS resolver and intentionally exposed host resources. These are configuration/threat-model risks, not newly verified vulnerabilities. The public review is limited to already documented boundaries; a separate security-sensitive source observation requires coordinated private review under docs/security.md:57-63. No claim is made that the snapshot is vulnerability-free.
This is a sampled source review, not a complete audit of every backend or configuration. No sandbox escapes, credential access, network evasion, Docker operations, or live attack tests were performed. Dependency vulnerability status is unknown: package.json:57-98 was inspected, but an online npm audit was not run.
🔍 Findings from Firewall Escape Test
The optional pre-fetched excerpt was unavailable for analysis. Exact command and output:
$ cat /tmp/gh-aw/escape-test-summary.txt
Failed to fetch run logs for secret-digger-copilot run 29286879560
This is not evidence that any escape attempt was made, passed, or failed, and no recommendations can be attributed to that run.
🛡️ Architecture Security Analysis
Network.containers/agent/setup-iptables.sh:401-406,429-482 redirects HTTP(S) to Squid and drops otherwise-unallowed TCP/UDP; src/host-iptables-rules.ts:258-299 installs host-side rejection. src/squid/config-generator.ts:171-190 applies domain filtering and final denial; src/squid/ssl-bump.ts:17-20,34-49 describes ClientHello SNI checks followed by splicing. The resolver destination exception does not itself enforce the names queried (setup-iptables.sh:439-450); docs/egress-filtering.md:61-72 explicitly documents the residual DNS disclosure risk. A policy-enforcing resolver is needed when query names must be restricted. Allowlisted origins remain trusted destinations, not a content-level data-loss guarantee.
Containers and least privilege.src/services/agent-service.ts:70-106,342-386 keeps NET_ADMIN on a separate init container, drops several agent capabilities, enables no-new-privileges and seccomp, and sets memory and PID limits. containers/agent/entrypoint.sh:461-476,1813-1819 drops SYS_CHROOT/SYS_ADMIN in the chroot execution path. Sidecar defaults drop all capabilities (src/services/service-security.ts:43-51). The agent uses apparmor:unconfined and unlimited swap by default; these are hardening tradeoffs, not proof of an escape. docs/security.md:30-45 explicitly excludes live shared-directory IPC and opt-in Docker access from a stronger filesystem boundary.
Domain validation.src/domain-validation.ts:23-32,46-92,108-124 rejects config-delimiter characters, empty entries, and several overbroad wildcard forms. src/domain-patterns.ts:69-122 generates escaped, anchored wildcard regexes; src/squid/domain-acl.ts:23-43,72-77 adds another interpolation check. A plain allowed domain intentionally includes subdomains (src/squid/domain-acl.ts:38-43); policy owners must review who controls those subdomains.
Input validation and wrappers.src/host-iptables-validation.ts:7-16,38-54 validates port syntax and ranges before passing arguments to iptables. containers/agent/entrypoint.sh:1597-1610,1622-1637 validates preflight binary names and quotes argument-form commands; the explicit shell command is a trusted caller-supplied command, not a sandbox against the caller's own script. The requested containers/agent/docker-wrapper.sh is absent in this snapshot; the relevant Docker socket policy is src/services/agent-volumes/docker-socket.ts:32-48. The existing containers/agent/gh-cli-proxy-wrapper.sh:10-14,33-60 is a different wrapper and serializes argument arrays before sending requests to its sidecar.
CIS/NIST comparison (qualitative, not a certification). Selective capability drops, no-new-privileges, seccomp, PID limits, and deny-by-default egress follow least-privilege and NIST SP 800-41-style filtering principles. Gaps relative to a stricter hardened-container posture include the unconfined AppArmor setting, temporary startup capabilities, unlimited default swap, and optional direct host/socket access. Actual CIS control applicability and runtime compliance were not assessed.
⚠️ Threat Model
Ratings express conditional risk, not confirmed exploitability or measured probability.
STRIDE
Threat and precondition
Likelihood / impact
Evidence
Spoofing
A trusted or allowlisted origin is controlled or compromised; origin trust alone does not establish content integrity.
Explicit shell command is intentionally trusted input; medium operational risk
Docker socket
src/services/agent-volumes/docker-socket.ts:32-48
masked by default, warning for opt-in
Exposed socket confers daemon authority; high conditional risk
Audit logs
src/squid/config-generator.ts:138-153
access and JSONL logs, exclusions
Sensitive log content and intentional exclusions require retention/access policy; medium risk
📋 Evidence Collection
The following is the complete output of the final bounded evidence-gathering block. Earlier exploratory output was sampled or truncated and is not represented as a complete transcript. Security-sensitive details are not published in this discussion.
=== Snapshot ===
35fb3a8
=== Documented risk: DNS ===
62:intentionally allowlisted origin. DNS tunneling can exfiltrate data through
71:This fix does not filter direct DNS queries or queries for allowlisted names;
72:use a policy-enforcing resolver via `--dns-servers` when those also need filtering.
443: iptables -A OUTPUT -p udp -d "$dns_server" --dport 53 -j ACCEPT
444: iptables -A OUTPUT -p tcp -d "$dns_server" --dport 53 -j ACCEPT
=== Documented risk: shared resources ===
30:**This is not a blanket guarantee against IPC placed in intentionally shared
32:and custom mounts are live host shares. Do not run privileged or
40:and filesystem. Enabling Docker socket access also grants authority outside this
34: logger.warn('Docker-in-Docker enabled: agent can run docker commands (firewall bypass possible)');
46: '/dev/null:/host/var/run/docker.sock:ro',
47: '/dev/null:/host/run/docker.sock:ro',
=== Isolation controls ===
78: cap_add: ['SYS_CHROOT', 'SYS_ADMIN'],
81: 'NET_RAW', // Prevents raw socket creation (iptables bypass attempts)
92: 'no-new-privileges:true',
94: 'apparmor:unconfined',
101: memswap_limit: config.memoryLimit ? config.memoryLimit : '-1', // Disable swap when user specifies limit
106: pids_limit: config.pidsLimit || 1000,
384: // NET_RAW is required by iptables for netfilter socket operations.
385: cap_add: ['NET_ADMIN', 'NET_RAW'],
395: pids_limit: 50,
=== Input validation ===
121: checkDangerousChars(trimmed);
122: checkOverBroadPattern(trimmed);
123: checkStructuralValidity(trimmed);
13: return start >= 1 && start <= 65535 && end >= 1 && end <= 65535 && start <= end;
16: return !isNaN(port) && String(port) === spec && port >= 1 && port <= 65535;
=== Firewall readiness ===
317: '/usr/local/bin/setup-iptables.sh > "$$AWF_INIT_SIGNAL_DIR/output.log" 2>&1',
318: 'touch "$$AWF_INIT_SIGNAL_DIR/ready"',
=== Logging ===
138:logformat firewall_detailed %ts.%03tu %>a:%>p %{Host}>h %<a:%<p %rv %rm %>Hs %Ss:%Sh %ru "%{User-Agent}>h"
152:access_log /var/log/squid/access.log firewall_detailed !healthcheck_localhost ${sensitiveLogAcl.length > 0 ? '!sensitive_log_domains' : ''} ${brokerLogSection.exclusions}
✅ Recommendations
Critical: No newly verified critical vulnerability is asserted in this public report. Follow the repository's coordinated-disclosure process for security-sensitive observations.
High: Use a query-policy-enforcing DNS resolver where DNS data disclosure matters; do not expose Docker sockets or privileged host IPC to untrusted workloads. Restrict live shares to the minimum required.
Medium: Evaluate a confined AppArmor profile compatible with startup; consider explicit swap limits and isolate privileged startup work. Minimize allowlisted domains and verify subdomain ownership. Review log access, retention, redaction, and loss visibility.
Low: Correct overly broad statements about DNS exfiltration prevention in docs/sandbox-design.md:95-97 to match docs/egress-filtering.md:61-72; distinguish resolver-destination controls from DNS query-name filtering.
📈 Security Metrics
Source scope: portions of 15 security-critical source files inventoried at 4,876 total lines, plus documentation and additional targeted source excerpts. This is the size of the inventoried files, not a count of lines fully analyzed.
Attack surfaces: 8 mapped above; not an exhaustive inventory of all optional backends.
Threat-model coverage: all 6 STRIDE categories considered; likelihoods are qualitative and conditional.
Escape-test results: unavailable; dependency vulnerability scan: not performed; runtime behavior: not tested.
Evidence limitation: the complete exploratory command/output transcript was not captured; the bounded block above is reproducible and exact.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
📊 Executive Summary
Static review of snapshot
35fb3a8found layered controls in the Compose path: host and agent firewall rules, a Squid domain/SNI policy, an iptables-init readiness gate, seccomp, capability reductions, and default Docker-socket masking. The most consequential documented residual risks are unrestricted query names through an allowed DNS resolver and intentionally exposed host resources. These are configuration/threat-model risks, not newly verified vulnerabilities. The public review is limited to already documented boundaries; a separate security-sensitive source observation requires coordinated private review underdocs/security.md:57-63. No claim is made that the snapshot is vulnerability-free.This is a sampled source review, not a complete audit of every backend or configuration. No sandbox escapes, credential access, network evasion, Docker operations, or live attack tests were performed. Dependency vulnerability status is unknown:
package.json:57-98was inspected, but an onlinenpm auditwas not run.🔍 Findings from Firewall Escape Test
The optional pre-fetched excerpt was unavailable for analysis. Exact command and output:
This is not evidence that any escape attempt was made, passed, or failed, and no recommendations can be attributed to that run.
🛡️ Architecture Security Analysis
Network.
containers/agent/setup-iptables.sh:401-406,429-482redirects HTTP(S) to Squid and drops otherwise-unallowed TCP/UDP;src/host-iptables-rules.ts:258-299installs host-side rejection.src/squid/config-generator.ts:171-190applies domain filtering and final denial;src/squid/ssl-bump.ts:17-20,34-49describes ClientHello SNI checks followed by splicing. The resolver destination exception does not itself enforce the names queried (setup-iptables.sh:439-450);docs/egress-filtering.md:61-72explicitly documents the residual DNS disclosure risk. A policy-enforcing resolver is needed when query names must be restricted. Allowlisted origins remain trusted destinations, not a content-level data-loss guarantee.Containers and least privilege.
src/services/agent-service.ts:70-106,342-386keeps NET_ADMIN on a separate init container, drops several agent capabilities, enables no-new-privileges and seccomp, and sets memory and PID limits.containers/agent/entrypoint.sh:461-476,1813-1819drops SYS_CHROOT/SYS_ADMIN in the chroot execution path. Sidecar defaults drop all capabilities (src/services/service-security.ts:43-51). The agent usesapparmor:unconfinedand unlimited swap by default; these are hardening tradeoffs, not proof of an escape.docs/security.md:30-45explicitly excludes live shared-directory IPC and opt-in Docker access from a stronger filesystem boundary.Domain validation.
src/domain-validation.ts:23-32,46-92,108-124rejects config-delimiter characters, empty entries, and several overbroad wildcard forms.src/domain-patterns.ts:69-122generates escaped, anchored wildcard regexes;src/squid/domain-acl.ts:23-43,72-77adds another interpolation check. A plain allowed domain intentionally includes subdomains (src/squid/domain-acl.ts:38-43); policy owners must review who controls those subdomains.Input validation and wrappers.
src/host-iptables-validation.ts:7-16,38-54validates port syntax and ranges before passing arguments to iptables.containers/agent/entrypoint.sh:1597-1610,1622-1637validates preflight binary names and quotes argument-form commands; the explicit shell command is a trusted caller-supplied command, not a sandbox against the caller's own script. The requestedcontainers/agent/docker-wrapper.shis absent in this snapshot; the relevant Docker socket policy issrc/services/agent-volumes/docker-socket.ts:32-48. The existingcontainers/agent/gh-cli-proxy-wrapper.sh:10-14,33-60is a different wrapper and serializes argument arrays before sending requests to its sidecar.CIS/NIST comparison (qualitative, not a certification). Selective capability drops, no-new-privileges, seccomp, PID limits, and deny-by-default egress follow least-privilege and NIST SP 800-41-style filtering principles. Gaps relative to a stricter hardened-container posture include the unconfined AppArmor setting, temporary startup capabilities, unlimited default swap, and optional direct host/socket access. Actual CIS control applicability and runtime compliance were not assessed.
Ratings express conditional risk, not confirmed exploitability or measured probability.
docs/egress-filtering.md:61-64;src/squid/ssl-bump.ts:17-20docs/security.md:30-40containers/agent/setup-iptables.sh:469-482;src/squid/config-generator.ts:138-153containers/agent/setup-iptables.sh:439-450;docs/egress-filtering.md:61-72src/services/agent-service.ts:96-107src/services/agent-volumes/docker-socket.ts:32-48;docs/security.md:30-41🎯 Attack Surface Map
containers/agent/setup-iptables.sh:401-406,429-482containers/agent/setup-iptables.sh:439-450src/services/agent-service.ts:70-106docs/security.md:30-40src/domain-validation.ts:108-124containers/agent/entrypoint.sh:1597-1637;src/host-iptables-validation.ts:7-16src/services/agent-volumes/docker-socket.ts:32-48src/squid/config-generator.ts:138-153📋 Evidence Collection
The following is the complete output of the final bounded evidence-gathering block. Earlier exploratory output was sampled or truncated and is not represented as a complete transcript. Security-sensitive details are not published in this discussion.
Commands and output
✅ Recommendations
docs/sandbox-design.md:95-97to matchdocs/egress-filtering.md:61-72; distinguish resolver-destination controls from DNS query-name filtering.📈 Security Metrics
All reactions