Saltar al contenido
Fali Fuentes

BabidiGhost: 1,093 Metabase takeovers in four weeks without zero-days

Leer este artículo en español

November 25 marked the last human prompt from an AI agent, operated by a lone French-speaking hacker, that had taken over 1,093 Metabase instances in about four weeks (October 16–November 25), as well as compromising UN offices, French government agencies, a Brazilian state court, and Indonesia’s tax authority. A separate agentless cron job (FazerCards) was still active on November 26. No zero-days were used: just exposed services, weak credentials, and a Nous Hermes agent running on DeepSeek with all safeguards removed by the operator for about $27. The SOCRadar investigation, published November 27, documents the full campaign up to November 25. It remains relevant because it shows how a cheap, unprotected AI agent can act as an autonomous intrusion team on a global scale, and because the detection patterns and mitigations described are directly applicable to any environment exposing Metabase, self-hosted AI services, or weak credentials.

The AI agent turned autonomous intrusion team

The operator, profiled as BabidiGhost (also Babidi, BabidiCrackerGhost), patched 32 runtime safety hooks to no‑ops, disabled approvals and redaction, rewrote 613 skills in French and deployed a local proxy refusal_hunter with 12 jailbreak automated tactics, plus purge scripts that erased the agent’s refusals from memory. The result: a autonomous intrusion team low‑cost, which scanned 19,979 Metabase instances, exploited Odoo, Redis, NFS, PostgREST, and IDOR vulnerabilities, and maintained persistence via cloning on at least four servers with beacon to a command hive and Telegram bots for PhaaS, exfiltration, and secret scanning, according to SOCRadar’s research.

Metabase: primary target and backdoor account patterns

Of the 19,979 instances scanned, 1,093 suffered takeover of super‑admin; about 926 had live business databases, with table dumps of up to 72.7 million rows. The backdoor accounts follow detectable patterns: emails support.ops+<n>@protonmail.com, infra.ops.<hex>@protonmail.com, domains @bhsp-ops.local and @admin.local, and values core_user.email invalid. The request pattern —POST /api/session/reset_password 400 followed by GET /api/user/current 200 from the same origin— is high‑fidelity, low‑noise detection logic you can deploy today.

Confirmed intrusions in public agencies and critical sector

The list of confirmed victims raises the regulatory risk: UN office in Kenya (rooted in video‑conference nodes, 12,779 users, DNS zone, 87 recordings queued), French government agency (training platform, 980 accounts + reused email API keys for BEC), French local entity (full AD via NFS backup: 715 hashes, 22,000 residents, 6,939 emails with attachments), Belgian SaaS waste‑management provider (25 municipalities), Brazilian state court (167,970 case rows), and Indonesian tax office (3,282 taxpayers). Added to this are phishing and BEC campaigns: 7,647 emails impersonating MyMinfin (Belgium), 96 fake invoices from a stolen legitimate sender, 30,000 mutual insurance records with NIF and 11,812 unique IBANs, and at least seven cards captured via a Telegram bot.

Hijacking of AI infrastructure and agent self‑replication

The agent didn’t just attack; it also hijacked 327 exposed Langflow, Ollama, and OpenWebUI services, achieving 39 RCEs in Langflow and 3 admin takeovers in OpenWebUI, using Ollama nodes for compute. The self‑replication across ≥4 servers, the beacon to command hive and the Telegram bots make this case the first real operational demonstration of an AI agent turned into an autonomous, scalable, and cheap intrusion team. CYFIRMA’s weekly report contextualizes this activity in the same time window.

What to do now: detection and mitigation under real conditions

Start by auditing Metabase if you have exposed instances or signs of compromise: look for the email patterns and invalid emails in core_user, all stored DB credentials and update to the patched version (branch fix or 0.63.5). Do not expose /setup nor the admin interface to the Internet and disable the sample H2.

For the rest of the attack surface: do not publish Redis, Docker API (2375/2376), Langflow, Ollama, OpenWebUI, Odoo, NFS, or PostgREST without strong authentication and network segmentation; in legacy environments prioritize jump hosts or zero‑trust network access based on criticality.

Remove secrets from .env, Git repos and client code; use secret scanning (GitGuardian, TruffleHog, Gitleaks) in CI/CD and pre‑commit hooks, and rotate in a coordinated way to avoid downtime.

Restrict auto‑registration on platforms that custody email service keys and monitor bulk sending logs not initiated by your organization; requires visibility into mail relay and SMTP auth logs.

Treat agents and model gateways self‑hosted as applications internet‑facing: alert on unexplained traffic to model provider APIs (spikes in calls, errors of rate‑limit, new IPs), but you need egress monitoring and baseline of normal consumption to avoid false positives in fine‑tuning active.

Deploy detection rules context‑aware for the pattern password‑reset‑then‑current‑user in Metabase and for creation of local accounts ghost, bghost, dhcpd with SSH keys commented as ghost-rce, bhs-persist-*, blackout, etc.: high fidelity, low noise, applicable to any exposed Linux.

Hunt web shells listed (/tmp/jce-NNNN.xml.php, /s_<12hex>.php, beacon.php, cmd.php, gsx_d9e342.php) and processes tftpg, busybox, efs_wire, cloudflared with the provided SHA256 hashes; correlate with paths and context because they are legitimate tools.

If you detect compromise, assume multi‑server persistence (cloned agent, beacon hive, fleet from VPS); block IOC IPs/domains after verification (several are in shared hosting/proxies) and involve law enforcement if there are indications of access to public agencies or sensitive data.

SYSTEM_EXPERT
Rafael Fuentes – BIO

I am a seasoned cybersecurity expert with over twenty years of experience leading strategic projects in the industry. Throughout my career, I have specialized in comprehensive cybersecurity risk management, advanced data protection, and effective incident response. I hold a certification in Industrial Cybersecurity, which has provided me with deep expertise in compliance with critical cybersecurity regulations and standards. My experience includes the implementation of robust security policies tailored to the specific needs of each organization, ensuring a secure and resilient digital environment.

Share
Scroll al inicio