Hostile 100% go Download

github.com/OpenAI/codex v0.0.0-20260921133055-f585f13a120b

Deletes all iptables rulesAArch64 (ARM64) architecture string

Evidence

Deletes all iptables rules lines 12–37
12:56… }"
13else
14 # Fallback to default domains
15 ALLOWED_DOMAINS=("api.openai.com")
16 echo "Domains file not found, using default: ${ALLOWED_DOMAINS[*]}"
17fi
18
19# Ensure we have at least one domain
20if [ ${#ALLOWED_DOMAINS[@]} -eq 0 ]; then
21 echo "ERROR: No allowed domains specified"
22 exit 1
23fi
24
25# Flush existing rules and delete existing ipsets
26iptables -F
27iptables -X
28iptables -t nat -F
29iptables -t nat -X
30iptables -t mangle -F
31iptables -t mangle -X
32ipset destroy allowed-domains 2>/dev/null || true
33
34# First allow DNS and localhost before any restrictions
35# Allow outbound DNS
36iptables -A OUTPUT -p udp --dport 53 -j ACCEPT
37# A …
Shell command-substitution syntax lines 41–56
41:4… ables -A OUTPUT -o lo -j ACCEPT
42
43# Create ipset with CIDR support
44ipset create allowed-domains hash:net
45
46# Resolve and add other allowed domains
47for domain in "${ALLOWED_DOMAINS[@]}"; do
48 echo "Resolving $domain..."
49 ips=$(dig +short A "$domain")
50 if [ -z "$ips" ]; then
51 echo "ERROR: Failed to resolve $domain"
⋯5 lines
Changes an iptables chain policy lines 77–85
77:23… "$HOST_NETWORK" -j ACCEPT
78
79# Set default policies to DROP first
80iptables -P INPUT DROP
81iptables -P FORWARD DROP
82iptables -P OUTPUT DROP
83
84# First allow established connections for already approved traffic
85iptables -A INPUT -m state --state ESTABLISHED,RELATED …
Shell invokes the curl command lines 100–106
100:11… wall configuration complete"
101echo "Verifying firewall rules..."
102if curl --connect-timeout 5 https://example.com >/dev/null 2>&1; then
103 echo "ERROR: Firewall verification failed - was able to reach https://example.com"
104 exit 1
105else
106 echo "Firewall …
curl command names a remote HTTP(S) URL lines 106–114
106:74… com as expected"
107fi
108
109# Always verify OpenAI API access is working
110if ! curl --connect-timeout 5 https://api.openai.com >/dev/null 2>&1; then
111 echo "ERROR: Firewall verification failed - unable to reach https://api.openai.com"
112 exit 1
113else
114 …

Showing the top 5 files — 5 more files (105 regions) not shown.

No evidence locations were recorded for this file. Raw result

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.