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!

27,000 free expert AI agents, now inside your editor via MCP

https://prompteneering.com/
1•launchcore•1m ago•0 comments

Gor Nishanov (1971-2026)

https://herbsutter.com/2026/06/28/gor-nishanov-1971-2026/
1•leeter•1m ago•1 comments

Show HN: Certificate Transparency search that groups related certificates

https://certobserver.com/ct-search
1•rellem•1m ago•0 comments

Show HN: Lorentzian CSS Duality in Causal Diamond Quantum Error-Correcting Codes

https://github.com/ynnk-research/A-Lorentzian-CSS-Duality-in-Causal-Diamond-Quantum-Error-Correct...
1•ynnk•2m ago•0 comments

As the Tide Turns Against Putin, Beware the Drowning Man

https://foreignpolicy.com/2026/06/25/russia-ukraine-war-putin-escalation-nato-europe/
1•baxtr•4m ago•1 comments

Europe heatwave halts Leipzig trams as soaring temperatures damage tracks

https://www.firstpost.com/world/europe-heatwave-halts-leipzig-trams-as-extreme-heat-damages-track...
1•no_news_is•4m ago•1 comments

Farming is Why Humanity is Fucked

https://brennan.day/farming-is-why-humanity-is-fucked/
1•surprisetalk•5m ago•0 comments

Ask HN: Has open source become the best business model?

1•adithyaharish•8m ago•0 comments

We Reduced Development Time by 50%, Users Didn't Notice

1•Semi_hayat•9m ago•0 comments

The Secret Life of Computers – The Chip Letter

https://thechipletter.substack.com/p/the-secret-life-of-computers
1•rbanffy•9m ago•0 comments

NASA races to save Swift telescope

https://www.latimes.com/world-nation/story/2026-06-28/nasa-races-to-save-swift-telescope-with-dar...
1•mrhappyhappy•10m ago•0 comments

Cognitive Bias

https://en.wikipedia.org/wiki/Cognitive_bias
1•abixb•10m ago•0 comments

SQL Alerting in Cloud Monitoring Observability

https://cloud.google.com/blog/products/management-tools/alert-with-sql-in-cloud-monitoring-observ...
1•mjs06•11m ago•0 comments

The Humanoid That Runs Until Someone Steps In

https://atomsfrontier.substack.com/p/the-humanoid-that-runs-until-someone
2•jpatel3•11m ago•0 comments

ePulz.io

https://epulz.io/
3•tiptech•15m ago•0 comments

Making a Meal of the Family Meal: Cooking Dinner [audio]

https://abundance.institute/our-work/everyday-abundance-making-a-meal-of-the-family-meal-cooking-...
1•mooreds•15m ago•0 comments

A Beginner's Guide to Reopening the Strait (Of Hormuz)

https://www.commoditycontext.com/p/a-beginners-guide-to-reopening-the-strait
1•mooreds•16m ago•0 comments

AI-Enhanced Writing

https://enocc.com/blog/2026-04-09-on-ai-enhanced-writing.html
1•speckx•16m ago•0 comments

Pizza wheels are bad, Japanese toilets are great

https://www.noahpinion.blog/p/pizza-wheels-are-bad-japanese-toilets
1•mooreds•16m ago•0 comments

Ask HN: AI robbed my joy of reading books?

3•hasudon7171•19m ago•3 comments

Search, Discovery, Pills, and Portals

https://contraptions.venkateshrao.com/p/search-discovery-pills-and-portals
1•surprisetalk•20m ago•0 comments

Route Phone Calls to an AI Agent with the Telnyx Voice API

https://telnyx.com/resources/route-phone-calls-ai-agent
1•harpreetseehra•20m ago•0 comments

Dragon's Egg: a formally verified, distributed object-capability OS

https://github.com/emberian/dregg
1•iamthebesthere•20m ago•0 comments

Ask HN: Building a minimal to-do app based on Signal vs. Noise

1•simonhansson•21m ago•0 comments

Migratrom: Schema migrations you can trust your agent to write

https://migratrom.org/
1•alloysmila•24m ago•0 comments

Rocket Lab Buys Satellite Operator Iridium in Bid to Challenge SpaceX

https://www.wsj.com/business/telecom/rocket-lab-buys-satellite-operator-iridium-in-bid-to-challen...
2•JumpCrisscross•24m ago•0 comments

Tesla FSD v14 Lite

https://twitter.com/elonmusk/status/2071538306039357838
2•lucamark•26m ago•1 comments

Has anyone here used the AI trading bot "Zentriq"? Looking for honest feedback

https://qafstudio.gumroad.com/l/zentriq
1•klegolas•27m ago•0 comments

Turning Risk Appetite into Impact – By Eric Gilliam

https://www.freaktakes.com/p/turning-risk-appetite-into-impact
1•rbanffy•29m ago•0 comments

Anatomy of an Agent – By Stephen Gruppetta

https://www.thepythoncodingstack.com/p/2-anatomy-of-an-agent
1•rbanffy•29m ago•0 comments