Cyber Security Brasilby Igor Deungaro

MCP Is Repeating the Mistake Cloud Took Ten Years to Fix

MCP Is Repeating the Mistake Cloud Took Ten Years to Fix

I spent ten years doing Cloud Security Posture Management. Described honestly, the job consists of finding things nobody consciously chose to expose. A public bucket because the default was public. An open port because the Terraform module the team copied already shipped that way. An over-broad role because scoping it down was work and the deadline was Friday.

None of that is carelessness. It is the predictable behaviour of an ecosystem that grew faster than its own configuration discipline. And it is precisely what I am watching happen again with MCP — the Model Context Protocol, the layer that wires language models to tools, files and databases.

Old pattern, new component

An MCP server is, in practice, an endpoint that executes actions on a model's behalf. It reads files, queries databases, calls APIs. In many deployments I have looked at, it comes up in a container, listens on a port, and sits there — no authentication, no network segmentation, no record of who called what.

The question I would ask in a cloud assessment is the same one here: who can reach this endpoint? If the answer is “anything inside the VPC”, you have just handed an attacker with any foothold a remote execution tool with credentials baked in.

What makes it worse is that MCP servers frequently run on instances with access to the cloud provider's metadata endpoint. A server that accepts an arbitrary URL from a user and fetches it server-side is textbook SSRF. Pointed at the metadata service, it returns IAM credentials. This is not a novel AI vulnerability — it is a 2017 OWASP entry inside a 2025 component.

Why it is happening faster this time

When public cloud became the corporate default, it took years to build the posture tooling: the scanners, the CIS benchmarks, the admission controllers, the infrastructure modules with safe defaults. The CSPM market exists because the problem outgrew manual review.

With MCP we have none of that yet. There is no shared baseline, no reference benchmark, no scanner that says “this server exposes 14 tools, 3 of them write to disk, and none require authentication”. Adoption, meanwhile, is moving faster than cloud adoption ever did.

Adoption speed without a matching baseline is the operational definition of security debt.

What you can do today

  • Inventory first. You cannot secure MCP servers you do not know exist. Start by mapping what is running, on which hosts, exposing which tools.
  • Treat the endpoint as a workload, not a plugin. Mutual authentication, loopback or a dedicated internal network, never direct internet exposure.
  • Block the metadata service. On GCP and AWS, deny metadata endpoint access from any process that accepts untrusted input. That removes the entire SSRF-to-credential class.
  • Log the tool call, not just the prompt. The audit event that matters is “tool X was invoked with argument Y”, and it belongs in the same SIEM as everything else.
  • Write the policy before the next integration. A one-page document stating which tools may be exposed and under what conditions is worth more than a scanner you do not have yet.

The inconvenient part

None of these recommendations is sophisticated. They are the same controls we have applied to internal services for fifteen years. That is exactly the point: the risk in MCP today does not come from exotic attacks against models, it comes from basic infrastructure hygiene nobody applied because the component looked like “an AI thing” rather than “a production thing”.

It is a production thing. Treat it accordingly.

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

Your Agent's Credential Is Standing Privilege by Another Name

There is one question that separates teams running agents securely from teams merely running agents: when the agent is executing nothing, what can its credential still do? In most deployments the answer is “everything”. That is an identity problem the security industry already solved for humans — and is about to have to solve again, from scratch, for software. What PAM taught us Modern privileged access management rests on a simple idea: standing privilege is standing risk. So we built JIT — access granted at the moment of need, scoped, auto-expiring, fully audited. An administrator does not carry admin power all day; they request it, use it, and give it back. Now look at how we typically grant access to an agent. We create a service account. We attach the permissions it might need — and when unsure, a few more. We generate a key. We put the key in an environment variable. And we leave it there. That credential does not expire when the task finishes. It is not reduced while the...

Marcadores