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!

Some Ethical Problems with AI

https://arkvis.com/blog/2026-06-10_some-ethical-problems-with-ai.html
1•phyzix5761•2m ago•0 comments

Boot making and mending including repairing, lasting and finishing (1898)

https://gutenberg.org/cache/epub/78854/pg78854-images.html
2•petethomas•5m ago•0 comments

If you can't get a job today, it's your fault

https://auren.substack.com/p/if-you-cant-get-a-job-today-its-your
2•momentmaker•6m ago•0 comments

ReactOS (FOSS "Windows") achieves 3D-accelerated Half-Life on real hardware

https://www.phoronix.com/news/ReactOS-Running-Half-Life
3•jeditobe•13m ago•0 comments

Atlassian "Data Contribution"

2•yells_jovially•14m ago•0 comments

Claude Code v2.1.172: Sub-Agents Can Now Spawn Sub-Agents

https://byteiota.com/claude-code-v2-1-172-sub-agents-can-now-spawn-sub-agents/
2•sscaryterry•18m ago•0 comments

Show HN: I run a vision model on every screenshot, locally, on a 4GB GPU

https://github.com/ayushh0110/ScreenMind
7•skye0110•22m ago•0 comments

What Every Productivity App Trades Away [video]

https://www.youtube.com/watch?v=OuEKdD_1F8s
2•zdw•23m ago•0 comments

The Economics Behind the Spurs

https://bycig.substack.com/p/the-economics-behind-the-spurs
2•paulpauper•27m ago•0 comments

Has AI Killed How-To Nonfiction?

https://tim.blog/2026/06/12/has-ai-already-killed-nonfiction/
3•paulpauper•27m ago•0 comments

Sometimes it is hard to solve for the equilibrium

https://marginalrevolution.com/marginalrevolution/2026/06/sometimes-it-is-hard-to-solve-for-the-e...
2•paulpauper•28m ago•0 comments

'The traveler' book review: An enlightening voyage

https://www.wsj.com/arts-culture/books/the-traveler-review-an-enlightening-voyage-e9754ecb
2•hhs•29m ago•0 comments

Coronavirus and Credibility (2020)

https://paulgraham.com/cred.html
2•downbad_•29m ago•0 comments

White House's export limits on Anthropic linked to concerns about Chinese access

https://www.semafor.com/article/06/13/2026/white-house-move-to-limit-anthropic-linked-to-concerns...
4•shscs911•36m ago•0 comments

Getting Creative with Perlin Noise Fields

https://sighack.com/post/getting-creative-with-perlin-noise-fields
3•0x000xca0xfe•39m ago•0 comments

Ancient genome duplications laid the foundations of complex brains

https://www.ox.ac.uk/news/2026-06-09-ancient-genome-duplications-laid-the-foundations-of-complex-...
2•hhs•40m ago•0 comments

The 27 Platform Releases – June 2026

https://developer.apple.com/documentation/Updates
2•Austin_Conlon•41m ago•0 comments

Four by Three

https://www.hankgreen.com/fourbythree
2•_tk_•45m ago•0 comments

New research reveals how brains update their predictions

https://source.washu.edu/2026/06/new-research-reveals-how-brains-update-their-predictions/
2•hhs•46m ago•0 comments

LazyOwn RedTeam Framework

https://github.com/grisuno/LazyOwn
2•grisun0•49m ago•1 comments

Derbyshire Police officer accused of using AI to 'create evidence'

https://www.bbc.com/news/articles/cy8wppwdxl6o
16•healsdata•52m ago•1 comments

Hans Schulz – The father of the VEF Minox lens?

https://moments-of-now.com/hans-schulz-the-father-of-the-vef-minox-riga-lens/
2•throwaway81523•52m ago•0 comments

Wirth's Law

https://en.wikipedia.org/wiki/Wirth%27s_law
2•RinTohsaka•1h ago•0 comments

Designing Software for Software Factories

https://blog.sshh.io/p/designing-software-for-software-factories
2•sshh12•1h ago•0 comments

The Ruby JRuby Was Built to Run

https://intertwingly.net/blog/2026/06/11/The-Ruby-JRuby-Was-Built-to-Run.html
2•mooreds•1h ago•0 comments

Rails: The Sharp Parts. Lock Is Not a Mutex

https://baweaver.com/writing/2026/06/05/rails-sharp-parts-lock-is-not-a-mutex/
2•mooreds•1h ago•0 comments

Timeline of HN

https://news.ycombinator.com/threads?id=ChrisArchitect
6•razor-thin•1h ago•0 comments

LLM Token Price Index

https://tokenpriceindex.com
3•zurtri•1h ago•1 comments

Building a Functional Lego Typewriter [video]

https://www.youtube.com/watch?v=ZIWTSkCVxjk
2•vinnyglennon•1h ago•0 comments

Battery recycling boom exposes schoolchildren to lead

https://www.ft.com/content/19beeed4-8c99-4de3-a163-9301210634ad
2•petethomas•1h ago•0 comments