Cyber Security Brasilby Igor Deungaro

The Repository Issue as an Attack Vector

The Repository Issue as an Attack Vector

It is worth examining one concrete case in detail, because it shows better than any theory why the usual controls do not catch this class of attack.

The case

A researcher at Invariant Labs showed that a free GitHub account and a single malicious issue in a public repository were enough to exfiltrate private repository contents, personal data and salary information from a developer using an assistant with the GitHub MCP server.

What the developer did: asked for a review of the open issues. Nothing else. The payload hidden in the issue redirected the agent into accessing private repositories and publishing their contents.

Private does not mean protected when an agent with access reads untrusted external content.

Why no traditional control catches it

  • Authentication was correct. The agent used the legitimate user's legitimate credential.
  • Authorisation was correct. The user genuinely had access to those private repositories.
  • There was no malware. No binary, no strange process, nothing for EDR to detect.
  • The traffic was normal. GitHub API calls from a machine that always calls the GitHub API.
  • The prompt was innocent. Conversation logs show nothing suspicious.

The entire traditional security stack is working perfectly while the data leaves.

Where this case breaks

Three controls, in order of effectiveness:

  • Scope separation. The agent reading public issues should not carry a credential with private repository access. One identity per purpose solves the whole case.
  • Context contamination. After reading public content, deny external writes and private resource reads within the same task.
  • Approval on publish. Publishing is one of the four irreversible verbs; showing the literal content before posting would have given the developer a chance to see what was leaving.

The generalisation

Swap “repository issue” for any third-party input your agent reads: support ticket, email, document comment, web page, filename in a shared bucket. The pattern is identical and the list of surfaces is considerably longer than most teams have mapped.

Este blog publica em português e inglês. / This blog publishes in Portuguese and English. EN · PT

Denunciar abuso

As inseguranças do sucesso da segurança cibernética

As inseguranças do sucesso da segurança cibernética. Tornar-se um grande profissional não precisa custar sua felicidade, mas a cultura da moagem torna isso provável. Nos últimos anos, a questão da saúde mental no setor de segurança cibernética ganhou destaque. Uma  pesquisa de 2019  revelou que 1 em cada 6 CISOs admitiu se  automedicar  para lidar com o estresse de seu trabalho. A tensão passa pelo escritório do CISO e permeia todo o setor. Um perfil que está crescendo  mais rápido que o orçamento  e uma sofisticação cada vez maior e  o impacto financeiro  dos ataques se combinam para transformar o que antes era um canto do departamento de TI em uma panela de pressão. John Hammond  , pesquisador de segurança cibernética da Huntress, falou sobre “ Hard Truths and Unexpected Realities: Lamentations in Producing Cybersecurity Content ” na  Intigriti 1337UP Live  , uma conferência online sobre bugs, em março de 2022. Seus...

DICA: comandos para pentest e segurança ofensiva

Fala galera, blz ? Segue uma lista de comandos maravilhosa, voltada para teste de vulnerabilidades. Observação Pertinente: Os TIPOS de COMANDOS e as INSTRUÇÕES estão em INGLÊS! NÂO ME RESPONSABILIZO POR USO INDEVIDO. Pré-requisitos: ✔️  Python 3.5 ✔️  OS que suporte Python (eu utilizei Kali) Reconnaissance / Enumeration Extracting Live IPs from Nmap Scan nmap 10.1.1.1 --open -oG scan-results; cat scan-results | grep "/open" | cut -d " " -f 2 > exposed-services-ips Simple Port Knocking for x in 7000 8000 9000; do nmap -Pn –host_timeout 201 –max-retries 0 -p $x 1.1.1.1; done DNS lookups, Zone Transfers & Brute-Force whois domain.com dig {a|txt|ns|mx} domain.com dig {a|txt|ns|mx} domain.com @ns1.domain.com host -t {a|txt|ns|mx} megacorpone.com host -a megacorpone.com host -l megacorpone.com ns1.megacorpone.com dnsrecon -d megacorpone.com -t axfr @ns2.megacorpone.com dnsenum domain.com nslookup -> set type=any -> ls -d domain.com for ...

Atacantes precisam de menos de 10 horas para encontrar fraquezas

Atacantes precisam de menos de 10 horas para encontrar fraquezas. Configurações vulneráveis, falhas de software e serviços da Web expostos permitem que hackers encontrem pontos fracos exploráveis ​​nos perímetros das empresas em apenas algumas horas, não em dias. O hacker ético médio pode encontrar uma vulnerabilidade que permite a violação do perímetro da rede e, em seguida, explorar o ambiente em menos de 10 horas, com testadores de penetração focados na segurança da nuvem obtendo acesso mais rapidamente aos ativos direcionados. Além disso, uma vez que uma vulnerabilidade ou fraqueza é encontrada, cerca de 58% dos hackers éticos podem invadir um ambiente em menos de cinco horas. Isso está de acordo com uma pesquisa com 300 especialistas do SANS Institute e patrocinada pela empresa de serviços de segurança cibernética Bishop Fox, que também descobriu que as fraquezas mais comuns exploradas pelos hackers incluem configurações vulneráveis, falhas de software e serviços da Web expost...

Quem sou eu

Minha foto
Igor Deungaro
Bem Vindo ao Cyber Security Brasil, espero que goste !!!
Ver meu perfil completo

Cyber Security

MCP Servers via npx/uvx: The Problem of "Latest" Resolved at Runtime

Foto: kevin dooley · CC BY 2.0 The MCP client config says npx -y some-mcp-package . Every time the agent starts, it downloads and runs whatever the newest version is at that minute. The installer became the deploy npx and uvx were built for convenience: run a tool without installing it. With no pinned version, they resolve the name against the registry on every run. That means your MCP server's code is decided by whoever publishes the package, at the moment you open your editor. The -y even skips the one confirmation that would have existed. Without a pinned version, what runs on your machine is decided by someone else's latest publish . Why it is worse for MCP An MCP server is not just any library. It runs as a local process with your credentials, reads environment variables full of tokens, and exposes tools the model calls on its own. A compromised new version needs no exploit: it is already inside, with access to everything the agent can reach, and it can rewrite...

Marcadores