frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: DeepTeam – Penetration Testing for LLMs

https://github.com/confident-ai/deepteam
3•jeffreyip•1y ago
Hi HN, we’re Jeffrey and Kritin, and we’re building DeepTeam (https://trydeepteam.com), an open-source Python library to scan LLM apps for security vulnerabilities. You can start “penetration testing” by defining a Python callback to your LLM app (e.g. `def model_callback(input: str)`), and DeepTeam will attempt to probe it with prompts designed to elicit unsafe or unintended behavior.

Note that the penetration testing process treats your LLM app as a black-box - which means that DeepTeam will not know whether PII leakage has occurred in a certain tool call or incorporated in the training data of your fine-tuned LLM, but rather just detect that it is present. Internally, we call this process “end-to-end” testing.

Before DeepTeam, we worked on DeepEval, an open-source framework to unit-test LLMs. Some of you might be thinking, well isn’t this kind of similar to unit-testing?

Sort of, but not really. While LLM unit-testing focuses on 1) accurate eval metrics, 2) comprehensive eval datasets, penetration testing focuses on the haphazard simulation of attacks, and the orchestration of it. To users, this was a big and confusing paradigm shift, because it went from “Did this pass?” to “How can this break?”.

So we thought to ourselves, why not just release a new package to orchestrate the simulation of adversarial attacks for this new set of users and teams working specifically on AI safety, and borrow DeepEval’s evals and ecosystem in the process?

Quickstart here: https://www.trydeepteam.com/docs/getting-started#detect-your...

The first thing we did was offer as many attack methods as possible - simple encoding ones like ROT13, leetspeak, to prompt injections, roleplay, and jailbreaking. We then heard folks weren’t happy because the attacks didn’t persist across tests and hence they “lost” their progress every time they tested, and so we added an option to `reuse_simulated_attacks`.

We abstracted everything away to make it as modular as possible - every vulnerability, attack, can be imported in Python as `Bias(type=[“race”])`, `LinearJailbreaking()`, etc. with methods such as `.enhance()` for teams to plug-and-play, build their own test suite, and even to add a few more rounds of attack enhancements to increase the likelihood of breaking your system.

Notably, there are a few limitations. Users might run into compliance errors when attempting to simulate attacks (especially for AzureOpenAI), and so we recommend setting `ignore_errors` to `True` in case that happens. You might also run into bottlenecks where DeepTeam does not cover your custom vulnerability type, and so we shipped a `CustomVulnerability` class as a “catch-all” solution (still in beta).

You might be aware that some packages already exist that do a similar thing, often known as “vulnerability scanning” or “red teaming”. The difference is that DeepTeam is modular, lightweight, and code friendly. Take Nvidia Garak for example, although comprehensive, has so many CLI rules, environments to set up, it is definitely not the easiest to get started, let alone pick the library apart to build your own penetration testing pipeline. In DeepTeam, define a class, wrap it around your own implementations if necessary, and you’re good to go.

We adopted a Apache 2.0 license (for now, and probably in the foreseeable future too), so if you want to get started, `pip install deepteam`, use any LLM for simulation, and you’ll get a full penetration report within 1 minute (assuming you’re running things asynchronously). GitHub: https://github.com/confident-ai/deepteam

Excited to share DeepTeam with everyone here – let us know what you think!

A self-hosted market-research tool with publicly verifiable security

https://atlas.freedomcore.io/
1•MaverickAtlas•17s ago•0 comments

What Would It Look Like If the AI Bubble Popped?

https://www.thebignewsletter.com/p/what-would-it-look-like-if-the-ai
1•chmaynard•2m ago•0 comments

Is Your Writing Yours?

https://personalaisafety.com/p/is-your-writing-yours
1•sofiaqt•4m ago•1 comments

Mu

https://mu.social/
2•doener•4m ago•0 comments

Precision Matters in Block Scales

https://constantinides.net/2026/06/11/precision-matters-in-block-scales/
1•matt_d•5m ago•0 comments

UX Collective: The Prompt is not an Interface

https://uxdesign.cc/the-prompt-is-not-an-interface-41b77277681d
1•valisvalis•5m ago•0 comments

OpenAI Prepping for On-Prem Product?

https://ledger.somantix.ai/posts/open-ai-lays-groundwork-for-on-prem-product/
1•bdroopy•5m ago•0 comments

Data Science Weekly – Issue 655

https://datascienceweekly.substack.com/p/data-science-weekly-issue-655
1•sebg•7m ago•0 comments

Building an AI-Friendly Company, Just in Case AI Takes over the World

https://www.paxerp.com/blog/ai-friendly-company-docs
1•robeym•10m ago•0 comments

Agents' Last Exam

https://arxiv.org/abs/2606.05405
1•matt_d•11m ago•0 comments

DiffusionGemma: Discrete diffusion in a large language model

https://idlemachines.co.uk/topics/trending
1•smaddrellmander•12m ago•0 comments

Does the Harness Matter? Lessons from Ale-Claw on Agents' Last Exam

https://agents-last-exam.org/blogs/harness-matters
2•matt_d•13m ago•0 comments

Codex for Open Source

https://openai.com/form/codex-for-oss/
2•EvgeniyZh•13m ago•0 comments

Sam Altman's eye-scanning startup [Worldcoin parent] is laying off employees

https://www.businessinsider.com/sam-altman-orb-worldcoin-tools-for-humanity-layoffs-2026-6
2•toomuchtodo•14m ago•1 comments

Google Bikes?

https://www.republicbike.com/google_bikes.asp?hl=en-GB
1•joebig•14m ago•0 comments

Show HN: Diffcat – a TUI for delightful Git diffs

https://github.com/trebaud/diffcat
1•trebaud•14m ago•0 comments

Germany's 'HS2' delayed for five years after engineering blunder

https://www.telegraph.co.uk/world-news/2026/06/10/germanys-hs2-delayed-five-years-engineering-blu...
1•ExpertAdvisor01•14m ago•0 comments

The unreasonable effectiveness of simple HTML

https://shkspr.mobi/blog/2021/01/the-unreasonable-effectiveness-of-simple-html/
3•luispa•16m ago•0 comments

Show HN: Vera – open-source tool to self-audit smart contracts with AI

https://vera.apostro.xyz/
1•roofloor•18m ago•0 comments

We Had to Ban 65 CTF Teams to Get a Top 10 Leaderboard

https://camel4.dev/posts/byuctf-2026/
1•joshmoody24•19m ago•0 comments

The same SQLite query returns different results in Bun and Node

https://github.com/andrewitsover/blog/blob/main/sqlite.md
1•andrewitsover•19m ago•0 comments

Agents' Last Exam

https://agents-last-exam.org
1•gtirloni•19m ago•0 comments

GEDD – Grounded Eval-Driven Development for AI Agents

https://github.com/aws-samples/sample-GEDD
1•balasvce2026•20m ago•0 comments

Ted Cruz and Ron Wyden try to fight censorship with bipartisan JAWBONE Act

https://arstechnica.com/tech-policy/2026/06/ted-cruz-and-ron-wyden-try-to-fight-censorship-with-b...
1•alsetmusic•20m ago•0 comments

Ask HN: What models can you use with OpenCode that offer some level of privacy

1•ciwolex•21m ago•4 comments

Parse, Don't Guess

https://medium.com/@eitamos10/parse-dont-guess-817f80717912
2•valkdb•21m ago•0 comments

My AI Opinions

https://www.astralcodexten.com/p/my-ai-opinions
2•themgt•23m ago•0 comments

As a SWE with 10y experience, how long does it take to learn to build AI models

1•ciwolex•23m ago•2 comments

Goody-2: Safer than fable, similar capability

https://www.goody2.ai/chat
2•b--l•24m ago•0 comments

An MCP server for chemistry – structures, mechanisms, Anki decks

https://github.com/jurimaxam-dotcom/chemdraw-mcp
1•JuriMx•25m ago•0 comments