frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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!

No Model Will Save Us: Pope Leo, the Miserostat, and AI's Woke Coders

https://www.wmbriggs.com/post/61049/
1•B1FF_PSUVM•46s ago•0 comments

Billions spent and hypothetical returns: the AI boom explained with six charts

https://www.theguardian.com/technology/2026/jun/07/billions-spent-hypothetical-returns-the-ai-boo...
3•billybuckwheat•59s ago•0 comments

AI Companion App

1•adminOfbaratrum•1m ago•0 comments

ChatGPT app hits 1B monthly active users in record time

https://www.reuters.com/technology/chatgpt-app-hits-1-billion-monthly-active-users-record-time-da...
1•geox•3m ago•0 comments

Why isn't the U.S. better at soccer?

https://www.natesilver.net/p/why-isnt-the-us-better-at-soccer
4•7777777phil•7m ago•0 comments

Show HN: CodeSage Pro – an AI copilot that reads the problem on the page

https://chromewebstore.google.com/detail/codesage-pro-—-universal/cbkkghdedpjamcicmnfpihehmgjemmhi
1•rsingh867•8m ago•0 comments

When robots take over jobs, who decides what they do?

https://lorenzopieri.com/robotic_commons/
2•lorepieri•9m ago•0 comments

Ask HN: What is happening with the Meta Ads dashboard?

1•ramon156•12m ago•0 comments

Iran says staff blocked from entering US after players given World Cup visas

https://www.bbc.com/news/articles/cy8286nqz87o
1•root-parent•13m ago•0 comments

After empty promises, string theory finds new uses

https://www.science.org/content/article/after-empty-promises-string-theory-finds-new-uses
2•tcp_handshaker•15m ago•0 comments

Pete Hegseth's D-Day speech on immigration condemned as 'grotesque stupidity'

https://www.theguardian.com/world/2026/jun/07/pete-hegseth-d-day-speech-immigration-grotesque-stu...
5•tcp_handshaker•17m ago•1 comments

Sorry Marc, it's just not that big

https://www.ft.com/content/dcc7c956-858c-4fed-9820-f87f73f7bf8d
3•tcp_handshaker•17m ago•1 comments

I thought journaling app users wanted more features. Turns out they wanted trust

https://www.indiehackers.com/post/i-thought-journaling-app-users-wanted-more-features-turns-out-t...
2•rozvibe•20m ago•1 comments

All existing World Cup predictor apps were buggy, so I've built a cool one

https://kibic.co
2•olekskw•20m ago•1 comments

The Illusion of Invulnerability in Cybersecurity

https://zeltser.com/illusion-of-invulnerability
3•walterbell•20m ago•0 comments

Author of Home Office report reveals attempts to compromise him

https://www.theguardian.com/uk-news/2026/jun/07/home-office-china-report-honey-traps-compromise-a...
4•ilamont•21m ago•0 comments

Show HN: AudioTap, record calls, transcribe and diarize locally

https://audiotap.app/
1•AquiGorka•22m ago•1 comments

Bird flu, screwworm monitoring among foreign aid programs killed by DOGE

https://www.agri-pulse.com/articles/22636-bird-flu-screwworm-monitoring-among-foreign-aid-program...
1•JumpCrisscross•22m ago•0 comments

Thi.ng – open-source building blocks for computational design and art

https://thi.ng
1•nmstoker•23m ago•0 comments

Using Jai's Unique and Powerful Compiler for Typesafe Units

https://www.forrestthewoods.com/blog/using-jais-unique-and-powerful-compiler-for-typesafe-units/
1•erenon•25m ago•0 comments

Building Glass for the Web

https://aave.com/design/building-glass-for-the-web
1•bjelkeman-again•27m ago•0 comments

Parallel Lives: A Local-Realistic Interpretation of "Nonlocal" Boxes

https://www.mdpi.com/1099-4300/21/1/87
2•anotherpaulg•29m ago•1 comments

Anatomy of a Restaurant in 2026

https://danoregan.substack.com/p/where-the-money-goes-anatomy-of-a-45a
1•dylancollins•30m ago•1 comments

Show HN: Omni – airgapped macOS multimodal search over local files

https://github.com/hanxiao/omni-macos/
1•artex_xh•32m ago•0 comments

Wertz01

https://github.com/wertz01/SRBM
1•wertz01•34m ago•0 comments

Deep Dive into LLM Token Cost: How Prompt Caching Works

https://weidongzhou.wordpress.com/2026/06/06/deep-dive-into-llm-token-cost-blog-series-part-2-how...
2•tanelpoder•39m ago•0 comments

Soulless summer fairs and cute puppies: AI poster slop taking over pubs near you

https://www.the-independent.com/life-style/ai-poster-slop-local-events-flyer-b2989792.html
7•Michelangelo11•42m ago•0 comments

Banks Lay Groundwork for Mass Workforce Cuts as AI Takes Hold

https://www.bloomberg.com/news/articles/2026-06-07/banks-lay-groundwork-for-mass-workforce-cuts-a...
3•toomuchtodo•45m ago•0 comments

How's Linear so fast? A technical breakdown

https://performance.dev/how-is-linear-so-fast-a-technical-breakdown
36•howToTestFE•47m ago•11 comments

How do you design a $30k electric pickup? Inside Ford's skunkworks

https://arstechnica.com/cars/2026/05/how-do-you-design-a-30000-electric-pickup-inside-fords-skunk...
3•PaulHoule•52m ago•0 comments