Emanuel Valente

Emanuel Valente

Security engineer and researcher working on defensive AI, machine learning security, and detection engineering.

  • Principal Cybersecurity Engineer at iFood
  • PhD candidate at the University of São Paulo (USP)
  • Research interests: adversarial ML, malware analysis, and security automation

When Offense Gets Cheaper: Engineering Defense Against AI-Assisted Attacks

An Engineering Guide to Defending Against AI-Assisted Attacks and Securing Agentic Security Operations. Executive summary Cheaper agent-assisted exploration makes some previously unattractive attack paths worth pursuing. The response is not a new security doctrine, but three engineering commitments: Close viable paths. Give credible routes an owner, deadline, and retest; assign uncertain routes time-bounded validation instead of dismissing them as too complex. Protect the investigator. Separate SOC identities, tools, evidence, and fallback access from the environment being investigated. Test compromise, not just endpoint downtime. Prove the controls work. Replay paths, test revocation and containment, and measure outcomes alongside coverage. Authorized hosted and self-managed models can both support this work. Why cheaper exploration changes the operating model A company can harden most of its infrastructure and still leave a route to its most important assets. At Black Hat USA 2026, David Weston’s “The End of Rare: Defending When Offense Is Cheap” challenged the assumption that sophisticated attacks remain scarce because they require scarce expertise. The official announcement emphasizes prevention, memory safety, formal verification, and automated remediation. ...

November 23, 2026 · 17 min · Emanuel Valente

Serving Abliterated Models on GCP: Private Inference for AI Red Teams

In my first serving post, I served an abliterated Qwen checkpoint with vLLM on a single Runpod H100 NVL. The main challenge was getting the client, chat template, and tool-call parser to work together. The next step was a shared backend for authorized red-team users and autonomous agents. I built this proof of concept as part of my work at iFood to validate that infrastructure; the configuration described here does not reflect the company’s production environment. This post shares the decisions and trade-offs for AI Security and AI Red Teaming teams considering these models in their day-to-day authorized work. ...

Learning Transformers by Fitting a Portuguese Story Model on an ESP32

I wanted to understand transformers beyond calling a model API. Buying an ESP32-S3 gave that goal a concrete constraint: build a model that continues children’s stories in Brazilian Portuguese, with inference running on the board itself. The result is Historinhas, a 28.87M-parameter model trained from scratch. To understand its design, we will follow the path from the original Transformer to Gemma’s memory-saving embeddings, then trace Portuguese text through training, quantization, and deployment. A token is a text unit, often a word fragment, and each generation step predicts one more. ...

October 11, 2026 · 17 min · Emanuel Valente

My First Experience Serving an Abliterated Model: vLLM, Runpod, and the Tool-Calling Gap

My motivation for learning model serving came from my work at iFood: I saw a potential need to provide abliterated models for red-teaming teams. I wanted to understand the technology before that responsibility became a reality. This was a personal learning experiment, not an iFood production deployment. The objective was to expose a model through an API and connect it to an agent. I first served OBLITERATUS/Qwen3.8-27B-OBLITERATED, then migrated to medismera/Qwen3.8-27B-OBLITERATED-Mythos-Class-Agentic. Both ran through vLLM on one Runpod H100 NVL. ...

September 17, 2026 · 18 min · Emanuel Valente

Aray: Validating YARA Rules Without Handling Malware

A YARA rule is easy to share. The malware sample used to prove that the rule works often is not. That gap matters in detection engineering. Teams need positive fixtures to test scanners, alerting, incident-response automation, disaster-recovery workflows, and CI pipelines. Using live malware for those tests creates a separate operational problem: isolated infrastructure, handling controls, retention policy, and specialist oversight. A useful test artifact must satisfy the rule without reproducing the behavior of the malware that originally triggered it. ...

August 19, 2026 · 8 min · Emanuel Valente

iFood AI Security Meetup: Bringing the Community Together

On December 5, 2025, I helped organize the first iFood AI Security Meetup at our Campinas office. It came together quickly, without a budget: an idea among friends and colleagues from universities and the participating companies who wanted to get people in the same room to talk about AI security. Seeing researchers, students, and security practitioners share ideas throughout the day made the effort worth it. The full write-up on the iFood Security Blog introduces the speakers and includes recordings of the talks. They cover security in machine learning, attacks through MCP servers, anomaly detection at scale, and injection attacks against LLMs. If you couldn’t make it to Campinas, you can watch the sessions there. ...

January 8, 2026 · 1 min · Emanuel Valente

DoH Deception: Testing the Robustness of ML-Based Tunnel Detection

High accuracy is not the same thing as robustness.[1] That was the question behind my master’s research on DNS over HTTPS (DoH) tunnel detection. Several machine-learning classifiers reported excellent performance when evaluated on conventional train/test splits. But an attacker does not need to draw another sample from the same dataset distribution. They can change how a tunnel behaves, observe the detector’s output, and search for a traffic pattern that still carries their data while the classifier labels the flow as benign.[1] ...

September 16, 2024 · 7 min · Emanuel Valente

Prompt Injection: Exploring, Preventing & Identifying Langchain Vulnerabilities

Introduction Hey there, cyber enthusiasts! 🚀 LangChain connects language models to data and executable tools. That integration creates security risks when model-generated instructions reach code execution or database operations without appropriate controls. The original research and examples cover three disclosed vulnerabilities and practical ways to identify and mitigate them. Ever tinkered with GPT-4? Perhaps even conjured up a chatbot with it? Oddly, if you’re vibing in the AI universe, you’ve stumbled across LangChain. For those living under a digital rock (no judgment!), LangChain is our go-to portal for frolicking with Large Language Models (LLM), and it is becoming one of the main tools for interacting with these models. Tip: Need a quick dive into langchain realm? Check out this killer crash course in the video, below - no regrets, promise 🎥 ...

September 4, 2023 · 14 min · Emanuel Valente