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!

Show HN: Keyboard-first Hacker News client with a twist

https://www.orangecrumbs.com/hn/
1•oyster143•2m ago•0 comments

Every Postcard Tells a Story

https://observer.co.uk/style/features/article/every-postcard-tells-a-story
1•NaOH•3m ago•0 comments

I Found Something Weird in Claude Fable 5 Talks Too Much This Fixes It Shorts [video]

https://www.youtube.com/shorts/jWLxXeL5p5E
1•gptaiclips•3m ago•0 comments

Show HN: Sun light and path calculation for photography

https://www.lightwindow.app
1•sourabh86•4m ago•0 comments

Show HN: A GPUdriven voxel engine with binary greedy meshing & indirectrendering

https://github.com/omar-owis/VoxelEngine
1•Iwho•5m ago•0 comments

Ask HN: How Do You "Not Write Any Code by Hand" with a Token Budget?

1•mc-0•5m ago•0 comments

Loss of Cognitive Flexibility, Not Memory, May Be Earliest Sign of Alzheimer's

https://nautil.us/memory-loss-may-not-be-the-earliest-sign-of-alzheimers-1282448
1•bookofjoe•6m ago•0 comments

I built a weather station that runs machine learning to forecast weather

https://github.com/Dominic-Muscatella/weather-station-alpha/tree/master
2•makegreatthings•6m ago•1 comments

Do you hate XML? (2010)

https://sigfrid-lundberg.se/entries/2010/07/hate_xml/
2•theanonymousone•6m ago•0 comments

Show HN: I Built a 100% Free Bar Inventory System

https://opensourcebarware.com
2•RichBJamison•8m ago•0 comments

Dead Forest Theory

https://contraptions.venkateshrao.com/p/dead-forest-theory
2•akkartik•9m ago•0 comments

Wing Commander IV and the FMV future that never quite was

https://arstechnica.com/gaming/2026/07/wing-commander-iv-and-the-fmv-future-that-never-quite-was/
2•ulrischa•10m ago•0 comments

Ancient Greek Technology: The Origins of Robotics and Engineering

https://kotsanas.com/news/ancient-greek-technology/
2•andsoitis•12m ago•0 comments

RetroPad: A Tiny Notepad-style Windows text editor ~2.5kb

https://github.com/PlummersSoftwareLLC/TinyRetroPad
2•rishikeshs•13m ago•0 comments

Two nasty surprises in Home Assistant's config

https://blog.frankel.ch/home-assistant/9/
2•edward•13m ago•0 comments

Urban thermal structures in scenarios of hot weather: The Bologna study

https://www.sciencedirect.com/science/article/pii/S2212095526000106?via%3Dihub
1•simonebrunozzi•13m ago•0 comments

QuickFolder: Android Home Screen Organizer and App Launcher

https://play.google.com/store/search?q=QuickFolder&c=apps
1•amm811•14m ago•0 comments

When AI agents get you kicked out from a YC Startup

https://github.com/vaishcodescape/shipd-agent
1•vaishcodescape•16m ago•0 comments

Australia probes mystery space balls that washed up on beach

https://www.bbc.com/news/articles/c1jyydr7jnjo
1•poly2it•17m ago•0 comments

Ghostlog: Live terminal UI to monitor AI coding agent Git commits

https://github.com/salarkhannn/ghostlog
1•salarkhannn•17m ago•0 comments

Paint the Earth on a live interactive globe

https://earth.tattoo/?lat=39.74225&lng=-96.94255&zoom=2.63
2•earth-tattoo•18m ago•0 comments

Chemical accidents rise as Trump administration proposes weakening safety rules

https://insideclimatenews.org/news/30062026/hazardous-chemical-accidents-rise-as-safety-rules-wea...
1•p_stuart82•21m ago•0 comments

Show HN: rockbox-dsp – A reusable Rust DSP library extracted from Rockbox

https://crates.io/crates/rockbox-dsp
1•tsiry•24m ago•0 comments

The Company Founder Who Got Fired for Ignoring His Own Return-to-Office Rules

https://www.wsj.com/business/the-founder-who-got-fired-for-ignoring-his-own-return-to-office-rule...
1•berkeleyjunk•30m ago•0 comments

Show HN: Meon – declarative flat-parsing engine (SoA, no AST)

https://github.com/vgnapuga/meon
1•vgnapuga•34m ago•0 comments

Show HN: Aletheia – The Uncertainty Loop Agent for Claude Code and Codex

https://github.com/nsankar/Aletheia
1•sankarn_ai•34m ago•0 comments

Engram – persistent memory for AI agents, in-process, no cloud

https://github.com/HBarefoot/engram
2•barefootdifital•40m ago•0 comments

Moving Back Home Used to Be a Sign of Failure. Now It Shows Financial Savvy

https://www.wsj.com/lifestyle/relationships/living-with-parents-finances-0c35530c
6•apparent•42m ago•2 comments

Cursed Gemstones – The Koh-I-Noor Diamond

https://www.vulcans-forge.com/blog/news/cursed-gemstones-the-koh-i-noor-diamond
4•thunderbong•43m ago•0 comments

Longcat

https://longc.at/longcat.html
12•willmeyers•44m ago•0 comments