frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: AgentShield SDK – Runtime security for agentic AI applications

https://pypi.org/project/agentshield-sdk/
2•iamsanjayk•7mo ago
Hi HN,

We built AgentShield, a Python SDK and CLI to add a security checkpoint for AI agents before they perform potentially risky actions like external API calls or executing generated code.

Problem: Agents calling arbitrary URLs or running unchecked code can lead to data leaks, SSRF, system damage, etc.

Solution: AgentShield intercepts these actions:

- guarded_get(url=...): Checks URL against policies (block internal IPs, HTTP, etc.) before making the request.

- safe_execute(code_snippet=...): Checks code for risky patterns (os import, eval, file access, etc.) before execution.

It works via a simple API call to evaluate the action against configurable security policies. It includes default policies for common risks.

Get Started:

Install: pip install agentshield-sdk

Get API Key (CLI): agentshield keys create

Use in Python: from agentshield_sdk import AgentShield # shield = AgentShield(api_key=...) # await shield.guarded_get(url=...) # await shield.safe_execute(code_snippet=...)

Full details, documentation, and the complete README are at <https://pypi.org/project/agentshield-sdk/>

We built this because securing agent interactions felt crucial as they become more capable. It's still early days, and we'd love to get your feedback on the approach, usability, and policies.

Comments

subhampramanik•7mo ago
Looks interesting -- Does it work like a wrapper on top of OpenAI specs? Like, can we just replace the OpenAI package with this, and it's fully integrated?
iamsanjayk•7mo ago
Hey, thanks for asking! Good question.

AgentShield isn't a wrapper around the OpenAI package, so you wouldn't replace openai with it. Think of AgentShield as a separate safety check you call just before your agent actually tries to run a specific risky action.

So, you'd still use the openai library as normal to get your response (like a URL to call or code to run). Then, before you actually use httpx/requests to call that URL, or exec() to run the code, you'd quickly check it with shield.guarded_get(the_url) or shield.safe_execute(the_code).

Currently, It focuses on securing the action itself (the URL, the code snippet) rather than wrapping the LLM call that generated it.

You have reached the end of the internet

https://hmpg.net/
1•raytopia•1m ago•0 comments

Conductor: Context-driven development for Gemini CLI

https://developers.googleblog.com/conductor-introducing-context-driven-development-for-gemini-cli/
1•simonpure•1m ago•0 comments

Calm: Consistency as Logical Monotonicity

http://bloom-lang.net/calm/
1•forks•3m ago•0 comments

An Empirical Study of Bugs in the rustc Compiler (OOPSLA 2025) [video]

https://www.youtube.com/watch?v=c-7Mx3Fkzp0
1•matt_d•3m ago•0 comments

Bloom: an open source tool for automated behavioral evaluations

https://www.anthropic.com/research/bloom
1•Garbage•4m ago•0 comments

Built a content system that 6x'd traffic. Turning it into product. Want to test?

1•zchmael•6m ago•0 comments

Ask HN: Looking for contributors and maintainers for a open source launcher

1•yongdohyun•8m ago•0 comments

I got ripped off by YouTube "coach" using AI and how you might avoid it [video]

https://www.youtube.com/watch?v=l8yvsHFbzMI
1•zdw•12m ago•0 comments

Wisconsin town will use accessible voting machines after federal lawsuit

https://www.votebeat.org/wisconsin/2025/12/19/thornapple-agrees-to-use-voting-machines-after-bann...
1•hn_acker•16m ago•0 comments

Cto.new launches new benchmark using real end-to-end coding tasks

https://cto.new/bench
1•Perefin•16m ago•0 comments

Ex-ASML workers reverse-engineered state of the art chipmaking machines in China

https://www.pcgamer.com/hardware/processors/ex-asml-workers-reverse-engineered-state-of-the-art-c...
2•manidoraisamy•16m ago•0 comments

Show HN: Dragon (programming lang, also known as Dragonlang)

https://github.com/eotter-beep/dragonlang
1•telui•17m ago•0 comments

Show HN: Simple snow simulation in C using raylib

https://github.com/Sieep-Coding/snow-simulation
1•sieep•19m ago•0 comments

Online Gaming's Final Boss: The Copyright Bully

https://www.eff.org/deeplinks/2025/12/online-gamings-final-boss-copyright-bully
2•hn_acker•20m ago•1 comments

Show HN: Movely – Auto-scheduled micro-breaks based on your calendar free slots

https://movelyapp.com/
1•olivdums•25m ago•0 comments

Pure Silicon Demo Coding: No CPU, No Memory, Just 4k Gates

https://www.a1k0n.net/2025/12/19/tiny-tapeout-demo.html
12•a1k0n•25m ago•0 comments

Clean, Limitless Energy Exists. China Is Going Big in the Race to Harness It

https://www.nytimes.com/2025/12/13/climate/china-us-fusion-energy.html
2•bookofjoe•27m ago•1 comments

AI Code assistants has made completing side projects so easy

1•akmittal•29m ago•0 comments

Tell HN: PSN Stealth ID Verification

1•A4ET8a8uTh0_v2•29m ago•0 comments

Show HN: Sigma Runtime – 550-cycle identity stability benchmark on GPT-5.2

https://github.com/sigmastratum/documentation/blob/main/sigma-runtime/SR-EI-037/SIGMA_Runtime_0_3...
1•teugent•32m ago•0 comments

Tolkien's Secret: Why Lord of the Rings Outlasted Every Imitator

https://medium.com/@gp2030/tolkiens-secret-why-lord-of-the-rings-outlasted-every-imitator-c82e4ad...
3•light_triad•34m ago•1 comments

Construct in 2025: Year in Review

https://www.construct.net/en/blogs/construct-official-blog-1/construct-2025-year-review-1898
1•AshleysBrain•35m ago•0 comments

Unix v4 tape dumped and booted

https://oldbytes.space/@flexion/115752573933914452
2•homarp•36m ago•2 comments

Show HN: RAXE Open Source – LLM Prompt Threat Detection (EmbeddingGemma L2)

https://github.com/raxe-ai/raxe-ce
1•raxe•37m ago•1 comments

Hubble spots two cosmic collisions in the nearby Fomalhaut system

https://scienceclock.com/hubble-spots-cosmic-collisions-fomalhaut/
1•ashishgupta2209•37m ago•0 comments

Japan trials 100-kilowatt laser weapon

https://www.livescience.com/technology/engineering/japan-trials-100-kilowatt-laser-weapon-it-can-...
3•geox•40m ago•0 comments

Perplexity Lost Part of Our Conversation and Then Denied It

https://github.com/Looking4OffSwitch/perplexity-conversation-issue
3•LatencyKills•45m ago•0 comments

Two Young Physicists Seemed Destined for Greatness. One Shot the Other Dead

https://www.wsj.com/us-news/claudio-neves-valente-brown-mit-shooter-nuno-loureiro-efd84bd3
2•nradov•48m ago•1 comments

Rep+ Helped Me Identify a Critical Supabase JWT Exposure

https://bour.ch/how-rep-helped-me-identify-a-critical-supabase-jwt-exposure/
1•bscript•49m ago•0 comments

3D Risk on a Globe

https://www.instructables.com/3D-Risk-Game/
1•zdw•51m ago•0 comments