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!

World Wide Words

https://www.worldwidewords.org/genindex.html
1•Petiver•56s ago•0 comments

Show HN: Puzzle Season – five logic puzzles in the browser

https://puzzleseason.app/play/
1•msminhas•6m ago•0 comments

China doesn't need to beat US AI [video]

https://www.youtube.com/watch?v=sXA77wLF678
1•verdverm•8m ago•0 comments

Show HN: Migrating from Claude Code CLI to Claude Desktop

https://github.com/calebbarzee/claude-profiles
1•calebbarzee•10m ago•0 comments

The Ethics Issue of AI-Assisted Creation

https://im.not.ci/ai-creator-ethic/
2•uneven9434•24m ago•2 comments

Professional cyclists can top 100 km/h. But safety has not kept pace

https://www.cbc.ca/lite/story/9.7345287
1•colinprince•26m ago•0 comments

Show HN: 23k Verified 1P Walmart & Target Products with Preserved UPCs

https://github.com/FluffyTeddyBear12/us-retail-product-dataset
1•jimmied1213•27m ago•0 comments

Line-Rate Post-Quantum Byzantine Consensus via L1D Balanced Ternary

https://github.com/leadpiperl1/ternary-consensus-mesh
1•leadpiperl1•28m ago•0 comments

Scott Jenson: Are we going to use the same Desktop UX forever? [video]

https://www.youtube.com/watch?v=V7AfAcQwLW0
2•tripdout•59m ago•1 comments

RSA-896

https://saweis.net/posts/rsa-896.html
24•madars•1h ago•4 comments

Lattice enumeration: O(R^N) complexity reduced to O(R^2) with no floating point

https://github.com/Andrew-J-Morris/orthotropic-parity-and-discrete-pi
1•MorrisAndrewJ•1h ago•0 comments

Using system-one models inside high-throughput data pipelines

https://www.southbridge.ai/blog/jev-entity-resolution
2•hrishi•1h ago•0 comments

TanStack supply-chain attack exposed ~170 private CrowdSec repos

https://www.crowdsec.net/blog/tanstack-supply-chain-attack-analysis
6•fourfire•1h ago•1 comments

Is It a Flatpak? Is It an AppImage? No It's AppJail

https://www.youtube.com/watch?v=EBSMHBC0Phc
2•DtxdF•1h ago•1 comments

AI Bubble: 'They're coming to the end of this' – Eli the Computer Guy [video]

https://www.youtube.com/watch?v=0YIczZDCgsM
3•baranul•1h ago•0 comments

Show HN: Bastardica – Create bastard web fonts

https://bastardica.mitpit.com
2•MitPitt•1h ago•0 comments

Comparing reflection capabilities of C++, Zig and C3

https://nyr24.github.io/blog/reflection-comparison/
7•ManuLinares•1h ago•2 comments

Do you separate the reviewer's window from the author's

4•Marvin_RunAI•1h ago•1 comments

The Giza Project

https://giza.fas.harvard.edu/
2•Mr_Minderbinder•1h ago•0 comments

Why are AI leaders calling for a slow down? [audio]

https://www.cbc.ca/listen/cbc-podcasts/209-front-burner/episode/16237327-why-are-ai-leaders-calli...
1•BiraIgnacio•1h ago•1 comments

End the H-1B Program

https://end-h1b.com/
15•sergiotapia•1h ago•17 comments

A2E AI – an all-in-one AI video generator for text, images and avatars

https://textideo.com/model/a2e-ai
1•Yummiy•1h ago•0 comments

Pdfcn: Beautiful pdf components, built on Takumi and Forme, by Shadcn

https://github.com/shadcn-labs/pdfcn
4•nateb2022•1h ago•1 comments

Open-source free meme generator, friendly for AI agents and humans

https://github.com/terryds/memegenscript
2•terryds•1h ago•2 comments

Pure Code: What remains with developers after AI writes the code?

https://pure-code-essay.vercel.app/
3•kofdai•1h ago•0 comments

Ask HN: Are LLMs the antithesis of Hegel's universal spirit?

1•Avicebron•1h ago•0 comments

How to handle manager adding AI bs to our codebase/designs etc.

4•LandOfMightDev•2h ago•2 comments

Lisp.md: System Instructions for Lisp

http://funcall.blogspot.com/2026/09/lispmd-system-instructions-for-lisp.html
1•prestonlibby•2h ago•0 comments

How the Berkeley Overmind won the 2010 StarCraft AI competition (2011)

https://arstechnica.com/gaming/2011/01/skynet-meets-the-swarm-how-the-berkeley-overmind-won-the-2...
2•promiseofbeans•2h ago•1 comments

Portable Fruit Blender

https://www.instructables.com/Portable-Fruit-Blender/
1•sudo_cowsay•2h ago•0 comments