Cyber Security Brasilby Igor Deungaro

RAG as an Attack Surface: The Document That Gives the Order

RAG as an Attack Surface: The Document That Gives the Order
Foto: cybrgrl · CC BY 2.0

Almost everyone treats the RAG index as a database. It is untrusted input with high priority — the whole pipeline exists precisely to push that text into the model's context.

The boundary is at ingestion

Access control usually sits on the query side: who may ask. But the risk sits with who may write to the corpus. Internal wiki, shared drive, meeting transcripts, ticket base — if anyone in the company (or a public form) feeds the index, anyone can plant an instruction the agent will read with maximum confidence.

Whoever controls one paragraph of the corpus controls a slice of everybody's prompt.

Retrieval is the attacker's choice too

The poisoned document does not have to be retrieved by accident: it can be written to win the search. Repeat the terms of the expected question, cover the synonyms, pad it with plausible context. It is search engine optimisation, turned against your retriever.

What to apply

  • Tag every retrieved chunk with its origin and confidence level, and hand that to the model alongside the text.
  • Separate curated corpus from open corpus, with a distinct policy for each.
  • A fixed rule: retrieved content is reference, never instruction. No action fires straight from a document chunk.
  • Write review for low-trust sources before indexing, not after the incident.

The reindex detail

A document approved today can be edited tomorrow. If reindexing is automatic and approval was manual, you validated one version and you serve another. Either approval binds to a content hash, or it is worth nothing.

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

Injection That Propagates: When One Agent Contaminates the Next

Foto: John Mahowald · CC BY 2.0 In a system with a single agent, an injection reaches as far as that agent. In a pipeline where one agent's output becomes the next one's input, it reaches as far as the topology. The chain A triage agent reads the ticket and summarises. A routing agent reads the summary and picks the team. An execution agent reads the decision and acts. The hostile instruction entered in the first text and was carried forward through every summary — usually stripped of the markup that betrayed its origin, because each stage rewrites everything in its own words. Every intermediate summary is a laundering step: hostile content reaches the next agent looking like an internal conclusion. Why trust accumulates Nobody designs agent B to distrust agent A. Output from an internal component passes as trusted by default, and that assumption is exactly what turns a single injection into lateral movement. The most privileged agent in the chain is usually the last o...

Marcadores