Notícias
Notícias
5 min de leitura
18 de setembro de 2026

Seu agente está vazando Git history (silenciosamente)

ZCode: Agente AI uploads Git history silenciosamente. Seu agente: está vazando dados do cliente?

Equipe OpenClaw

Equipe OpenClaw · Time de Engenharia & Produto

A Equipe OpenClaw é formada por engenheiros, designers e especialistas em IA dedicados a construir a melhor plataforma de agentes conversacionais para negócios brasileiros. Combinamos expertise…


Seu agente está vazando Git history (silenciosamente).

Você é founder de SaaS.

Seu agente de IA:

  • Acessa repositório Git do cliente (coding, automação)
  • Your assumption: "Agente lê código (local only). Dados ficam protegidos."
  • Reality: "ZCode (popular coding agent) silently uploads Git history (para quem?)"
  • Your blind spot: ├─ Agent accesses: Git repo com credentials, API keys, customer secrets ├─ Agent does: Upload (silencioso) pra servidor externo ├─ You don't know: Data já está em servidor desconhecido ├─ Attacker discovers: Agent backdoor (data exfiltration vector) ├─ Customer discovers: Seu agente vazou código + secrets └─ Result: "LGPD fine + lawsuit + reputation damage + churn."

Pesquisadores descobriram:

"ZCode (GLM coding agent): Faz upload de Git history silenciosamente. Sem notificação. Sem consentimento. Sem disclosure. Destinação do upload: Desconhecida. Conteúdo: Credenciais, chaves de API, código proprietário, histórico de commits (tudo). Magnitude: Qualquer pessoa usando ZCode está vazando dados (unknowingly)."

Translation to your SaaS:

  • Old assumption: "AI agents são tools (read-only)."
  • New reality: "AI agents são spyware (can exfiltrate silently)."
  • Implication: "Any agent accessing customer data = potential data leak."
  • Your liability: "Customer data left your control (you're LGPD-liable)."

O Problema: Agentes acessam dados e ninguém sabe pra onde vão

Por que ZCode descoberto agora (e o que significa)

=== THE ZCODE DISCOVERY ===

What happened: ├─ ZCode (GLM coding agent) = popular choice (developers like it) ├─ Used by: Engineers, DevOps, AI practitioners ├─ Feature: "Access Git repos to help with coding" ├─ Problem: Silently uploads Git history to external server ├─ Uploading: Entire commit history (with credentials) ├─ Without: User knowledge, consent, notification ├─ To: Unknown destination (not disclosed) └─ Discovered: By security researchers (not ZCode developers)

Why this matters: ├─ Agent data exfiltration = new attack vector ├─ Silent = you don't know it's happening ├─ Compliance = LGPD violation (data leaving Brazil without consent) ├─ Credentials = API keys, passwords in Git history ├─ Customer data = Proprietary algorithms, business logic └─ Implication: "Any agent touching customer repos = potential data leak"

=== WHAT'S IN GIT HISTORY ===

When agent uploads Git history, it's uploading:

  1. Credentials (explicitly in commits) ├─ API keys: Stripe, OpenAI, Cloudflare, etc ├─ Database passwords: AWS, Postgres, MySQL ├─ OAuth tokens: GitHub, Google, Salesforce ├─ Private SSH keys: Access to servers ├─ Database connection strings: Full access └─ Risk: Attacker gets all credentials (full system access)

  2. Customer data (in code) ├─ Customer IDs, emails, phone numbers ├─ Business logic (proprietary algorithms) ├─ Pricing information (confidential) ├─ Internal documentation (roadmap, strategy) ├─ Comments with sensitive info ("TODO: fix security hole in...") └─ Risk: Attacker understands your system (can attack it)

  3. Commit history (metadata) ├─ Who changed what when (employee tracking) ├─ What bugs were fixed (vulnerability timeline) ├─ What features are in development (competitive intel) ├─ Who left/joined team (organizational intelligence) └─ Risk: Attacker knows your development patterns (find zero-days)

  4. Branch information ├─ Production branches (current deployed code) ├─ Staging branches (upcoming features, unreleased bugs) ├─ Security patches (know what was recently exploited) ├─ Feature branches (know what team is working on) └─ Risk: Attacker knows what's deployed (target appropriately)

  5. File structure ├─ Where is database connection? (attack surface mapping) ├─ Where are authentication checks? (bypass them) ├─ Where are payment systems? (financial theft) ├─ Where are security controls? (find gaps) └─ Risk: Attacker gets system architecture (knows where to attack)

=== THE MAGNITUDE OF THE PROBLEM ===

Who is vulnerable: ├─ Anyone using ZCode (popular coding agent) ├─ Anyone using similar agents that access Git ├─ Anyone using AI tools with repo access ├─ Probably: Most people using AI coding assistants (unknown risk) └─ Scope: Thousands of companies (potentially millions)

What data is at risk: ├─ Production credentials (immediate compromise risk) ├─ Customer data (LGPD violation) ├─ Business logic (competitive disadvantage) ├─ Security patches (tells attacker what was exploitable) ├─ Development roadmap (competitive intelligence) └─ Total exposure: Complete system compromise (if attacker uses data)

How attacker exploits: ├─ 1. Get Git history from ZCode's server (how? hack ZCode, buy from insider) ├─ 2. Extract credentials (automated: grep for passwords, API keys) ├─ 3. Test credentials (automated: try to access systems) ├─ 4. Gain access (automated: login to production systems) ├─ 5. Steal data (automated: exfiltrate customer data) ├─ 6. Ransom or sell (profit) └─ Timeline: Days (if credentials still valid)

=== YOUR LIABILITY (LGPD) ===

What LGPD says: ├─ "Personal data can only leave Brazil with consent" ├─ "You're responsible for processors (agents count)" ├─ "You must know where data goes (agent uploads = you violated)" ├─ "Breach notification required (30 days)" ├─ "Fines: Up to 2% of annual revenue (or R$ 50M)" └─ Your situation: "Data left Brazil without consent (via agent) = VIOLATION"

What happens: ├─ 1. Attacker uses leaked credentials ├─ 2. Customer data is stolen ├─ 3. Customer or regulator discovers ├─ 4. Investigation (how did data leak?) ├─ 5. Discovery: "ZCode agent uploaded history" ├─ 6. Fine: "2% of your annual revenue" ├─ 7. Lawsuit: "Customer sues for breach" └─ 8. Recovery: Expensive (legal, credit monitoring, reputation)

=== THE TRUST PROBLEM ===

ZCode situation highlights: ├─ How do you know what agents do with data? ├─ ZCode uploads secretly (no notice, no opt-out) ├─ You used ZCode (trusted vendor) ├─ But ZCode was exfiltrating (you didn't know) ├─ Who else is doing this? (Unknown) ├─ How do you verify? (Impossible without code audit) └─ Implication: "You can't trust agents with customer data (assumption of compromise)"

Broader problem: ├─ Most agents (coding, analysis, automation) need data access ├─ But: You don't control where data goes (agent company does) ├─ And: Agent company might upload (for analysis, training, etc) ├─ You: Have no visibility (can't audit agent behavior) ├─ Result: "Any agent = potential data leak (you can't prevent it)" └─ Reality: "Using agents with customer data = liability (accept risk or don't use)"


Como proteger contra agente data exfiltration

Estratégias práticas (implementáveis agora)

=== PROTECTION STRATEGIES ===

  1. Network isolation (agent can't reach external servers) ├─ [ ] Run agent in isolated environment │ ├─ VPC (Virtual Private Cloud) with no internet access │ ├─ Agent can access: Internal databases, internal APIs only │ ├─ Agent cannot access: External APIs, external storage, internet │ └─ Goal: Agent data stays internal (can't leak externally) ├─ [ ] Whitelist external destinations (if agent needs internet) │ ├─ Only allow: Specific domains (Stripe for payments, etc) │ ├─ Block: Everything else (unknown uploads blocked) │ ├─ Monitor: Log what agent accesses externally │ └─ Alert: If agent tries to access unknown domain ├─ [ ] Proxy/firewall (intercept agent traffic) │ ├─ All outbound traffic goes through proxy │ ├─ Proxy: Inspects what data is being sent │ ├─ Blocks: Large uploads, suspicious patterns │ └─ Logs: Everything (audit trail) └─ [ ] Air-gap (maximum isolation) ├─ Agent: Runs on isolated machine (no network) ├─ Data transfer: Manual (USB drive, if needed) ├─ Result: Zero risk of remote exfiltration └─ Downside: Inconvenient (but safest)

  2. Data minimization (agent has access to less data) ├─ [ ] Don't give agent customer repos │ ├─ Alternative: Give agent sanitized copy │ ├─ Remove: Credentials, secrets, sensitive comments │ ├─ Keep: Code logic (for assistance) │ └─ Goal: Even if leaked, doesn't contain secrets ├─ [ ] Separate credentials from code │ ├─ Store: Secrets in vault (not Git) │ ├─ Agent accesses: Code (safe) │ ├─ Agent cannot access: Credentials (protected) │ └─ Goal: Code leak != credential leak ├─ [ ] Use token-level permissions (not full access) │ ├─ Agent: Can only read (no write access) │ ├─ Agent: Can only access specific repos (not all) │ ├─ Agent: Can only access specific files (not full history) │ └─ Goal: Even if compromised, limited damage ├─ [ ] Redact sensitive data │ ├─ Scan: Code for secrets (API keys, passwords) │ ├─ Remove: Before giving to agent │ ├─ Tool: GitGuardian, TruffleHog, Semgrep │ └─ Goal: No secrets in agent input (can't leak) └─ [ ] Version control (know what agent accesses) ├─ Log: Every access (what file, when, which agent) ├─ Alert: Unusual access patterns (large downloads, unusual times) ├─ Audit: Monthly (review what agent accessed) └─ Goal: Detect suspicious behavior early

  3. Vendor trust verification (know what agent does) ├─ [ ] Audit vendor privacy policy │ ├─ Read: What data do they collect? │ ├─ Read: Where do they store it? │ ├─ Read: Do they train models on your data? │ ├─ Read: Can they share with third parties? │ └─ Red flag: Vague answers = don't use vendor ├─ [ ] Request security audit │ ├─ Ask: "Can we audit your code?" │ ├─ Ask: "Can we verify no exfiltration?" │ ├─ Ask: "Can we get SOC 2 certification?" │ └─ Red flag: Vendor refuses = don't use ├─ [ ] Check terms of service │ ├─ Look for: "We may use data for training" │ ├─ Look for: "We may share with partners" │ ├─ Look for: "We own your data" │ └─ Red flag: Unfavorable terms = don't use ├─ [ ] Vendor communication │ ├─ Ask: "Do you upload user data externally?" │ ├─ Ask: "Is this documented?" │ ├─ Ask: "How can we verify?" │ └─ Red flag: Hesitation or vague answers = don't use (like ZCode) └─ [ ] Contract clause (data handling) ├─ Require: "No external uploads without explicit consent" ├─ Require: "Data processing agreement (DPA)" ├─ Require: "Data residency (Brazil only)" ├─ Require: "Right to audit anytime" └─ Goal: Legal protection (if vendor violates)

  4. Monitoring & detection (catch exfiltration if it happens) ├─ [ ] Network monitoring (observe agent traffic) │ ├─ Monitor: All outbound connections │ ├─ Alert: Large uploads (data exfiltration signatures) │ ├─ Alert: Unknown destinations (not whitelisted) │ ├─ Alert: Unusual times (agent activity at 3am = suspicious) │ └─ Tool: Wireshark, Zeek, network IDS ├─ [ ] DLP (Data Loss Prevention) │ ├─ Policy: "Don't upload customer PII" │ ├─ Policy: "Don't upload credentials" │ ├─ Policy: "Don't upload proprietary code" │ ├─ Enforcement: Block uploads matching patterns │ └─ Tool: Cisco DLP, Forcepoint, Symantec ├─ [ ] File integrity monitoring (know if agent accessed secrets) │ ├─ Monitor: Access to credential files (.env, credentials.json) │ ├─ Alert: If agent reads secrets file │ ├─ Alert: If agent copies secrets file │ └─ Tool: Auditd (Linux), FSMonitor (Windows) ├─ [ ] Log analysis (detect suspicious patterns) │ ├─ Look for: Large data transfers │ ├─ Look for: Access to unusual files (credentials, PII) │ ├─ Look for: Access at unusual times (off-hours) │ ├─ Look for: Access from unusual locations (if applicable) │ └─ Tool: ELK stack, Splunk, Datadog └─ [ ] Regular audits (verify what happened) ├─ Monthly: Review what agent accessed ├─ Monthly: Verify no unauthorized uploads ├─ Monthly: Check for credential leaks (HaveIBeenPwned, etc) └─ Goal: Early detection if exfiltration happened

  5. Incident response (what to do if breach happens) ├─ [ ] Detect exfiltration (monitoring alerts) ├─ [ ] Isolate agent (cut network access immediately) ├─ [ ] Assess damage (what data was leaked?) ├─ [ ] Rotate credentials (invalidate leaked secrets) ├─ [ ] Notify customers (LGPD requires 30-day notice) ├─ [ ] Contact regulator (Autoridade Nacional de Proteção de Dados) ├─ [ ] Legal counsel (prepare for lawsuits) ├─ [ ] Investigation (forensics: how did it leak?) └─ [ ] Remediation (fix root cause)

=== PRACTICAL IMPLEMENTATION ===

[ ] Current state assessment ├─ [ ] Do you know what agents have access to? (yes/no) ├─ [ ] Do you isolate agent networks? (yes/no) ├─ [ ] Do you monitor agent traffic? (yes/no) ├─ [ ] Do you redact secrets before agent access? (yes/no) ├─ [ ] Do you have incident response plan? (yes/no) └─ [ ] Verdict: Can attacker exfiltrate data via agent?

[ ] Quick wins (implement this week) ├─ [ ] Audit vendor privacy policies (all agents you use) ├─ [ ] Ask vendors: "Do you upload data externally?" (get written answer) ├─ [ ] Scan repos for secrets (GitGuardian, TruffleHog) ├─ [ ] Setup network monitoring (log all outbound agent traffic) ├─ [ ] Create incident response plan (what if breach happens?) └─ [ ] Document (all agent access permissions)

[ ] Medium term (implement this month) ├─ [ ] Implement network isolation (agent VPC) ├─ [ ] Setup DLP policy (prevent credential uploads) ├─ [ ] Implement monitoring & alerting (catch exfiltration) ├─ [ ] Rotate all credentials (assume leaked until verified) ├─ [ ] Add data residency clause to vendor contracts └─ [ ] Staff training (team understands agent risks)

[ ] Long term (maintain ongoing) ├─ [ ] Monthly audits (verify no exfiltration) ├─ [ ] Quarterly vendor assessments (ensure compliance) ├─ [ ] Update incident response plan (based on learnings) ├─ [ ] Staff training (keep team updated on risks) └─ [ ] Monitor security research (new attack vectors)

=== REALITY CHECK ===

Agent data exfiltration is real: ├─ ZCode proves it (silent uploads discovered) ├─ Likely not unique (other agents probably do similar) ├─ Hard to detect (you can't see what agent does inside) ├─ High impact (complete system compromise) └─ Only solution: Assume compromise (isolate agents)

=== WHO TO ASK ===

If you're using agents with customer data: ├─ [ ] What vendors are you using? (inventory) ├─ [ ] What data do they have access to? (audit) ├─ [ ] Are you monitoring their traffic? (detection) ├─ [ ] Do you have incident plan? (response) └─ [ ] Action: AUDIT NOW (don't wait for breach)


Conclusão: Agent data leaks são novo vetor (sua responsabilidade)

O que ZCode descoberto revelou:

  1. Agentes silenciosamente exfiltram dados (não é bug, é "feature")

    • ZCode: Uploads Git history (sem notificação)
    • Destinação: Desconhecida (não disclosed)
    • Consentimento: Nenhum (usuário não sabe)
    • Implicação: "Agentes podem ser espionagem (you don't control them)."
  2. Você não consegue detectar exfiltration (happening silently)

    • Agente: Acessa dados internamente (você vê)
    • Agente: Upload externo (você não vê se not monitoring)
    • Implicação: "Silent breach (descoberto apenas quando attacker usa dados)."
  3. LGPD liability é real (dados deixam Brasil sem consentimento)

    • Regulador: "Você é responsável por processadores (agentes count)"
    • Regulador: "Dados saindo do Brasil = violação"
    • Regulador: "Multa: até 2% do faturamento anual"
    • Implicação: "Agente data leak = regulatory fine (not if, when)."
  4. Impacto escala com dados (mais data access = mais risco)

    • Pequeno: Agent accesses public code (low risk)
    • Médio: Agent accesses internal code (medium risk)
    • Grande: Agent accesses customer data directly (high risk)
    • Crítico: Agent accesses credentials (compromise risk)
    • Implicação: "You must minimize agent data access."
  5. Tempo para remediation é agora (antes de breach)

    • Hoje: Audit + isolate + monitor
    • Amanhã: Breach + fine + lawsuit
    • Implicação: "Security is cheaper than liability."

Sua decisão hoje:

  • Confiar que agentes são seguros (hope for best)
  • Assumir agentes podem vazar dados (verify everything)
  • Implementar proteção now (network isolation + monitoring)

Recomendação: AUDIT seus agentes NOW. Isolate networks. Monitor traffic. Don't wait para ZCode-like discovery acontecer com seu agente (será tarde demais e caro).

Na OpenClaw:

Ajudamos SaaS builders proteger contra agent data exfiltration:

  • Agent inventory: Quais agentes você usa? (discovery)
  • Data access audit: Que dados cada agente acessa? (assessment)
  • Network isolation: Como isolar agentes? (architecture)
  • Vendor assessment: Is vendor trustworthy? (evaluation)
  • Monitoring setup: Como detectar exfiltration? (detection)
  • DLP policy: Como prevenir data uploads? (prevention)
  • Incident response: E se breach happens? (response)
  • LGPD compliance: Como estar compliant? (legal)

Your agents can either be verified as safe (now) or cause breach and fine (later, expensively).

Choice: Audit or Regret?

Agent Data Leak Prevention | Network Isolation | LGPD Compliance →


Publicado em 18 de setembro de 2026

Leia também