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.

A Plan for 5-10%* Faster Free-Threaded JIT by Python 3.16

https://fidget-spinner.github.io/posts/faster-jit-plan.html
1•Qem•2m ago•0 comments

Optimizing Mannequin

https://real-mrbeam.github.io/2025/12/11/Optimizing-Mannequin.html
1•ibobev•6m ago•0 comments

Chinese SMIC achieves 5nm production without EUV tools

https://www.techpowerup.com/344000/chinese-smic-achieves-5-nm-production-on-n-3-node-without-euv-...
2•jsheard•8m ago•0 comments

Show HN: Work Simulation for developer evaluation instead of DSA and take-homes

https://imported-lush-slug.clueso.site/share/130f9789-54b9-41e4-b305-e5ecfe5e27fa
2•rishitchat•9m ago•0 comments

TikTok algorithm favors mental health content, analysis finds

https://www.washingtonpost.com/technology/interactive/2025/tiktok-algorithm-mental-health/
1•reaperducer•12m ago•0 comments

Chatbot-powered toys rebuked for discussing sexual, dangerous topics with kids

https://arstechnica.com/gadgets/2025/12/chatbot-powered-toys-rebuked-for-discussing-sexual-danger...
1•smurda•12m ago•0 comments

A New History of Arabia, Written in Stone (208)

https://www.newyorker.com/culture/culture-desk/a-new-history-of-arabia-written-in-stone
1•janandonly•14m ago•0 comments

Climate Nobel Prize

https://climatenobelprize.org/
2•Vinnl•14m ago•0 comments

Magic Eye Tetris

https://www.lutanho.net/play/magiceyetetris5.html
1•JelteF•16m ago•0 comments

Show HN: Epstein's emails reconstructed in a message-style UI (OCR and LLMs)

https://github.com/Toon-nooT/epsteins-phone-reconstructed
2•toon-noot•16m ago•0 comments

How to break free from smart TV ads and tracking

https://arstechnica.com/gadgets/2025/12/the-ars-technica-guide-to-dumb-tvs/
1•fleahunter•17m ago•0 comments

Air passengers exposed to high levels of ultrafine particle pollution

https://www.theguardian.com/environment/2025/dec/12/air-passengers-extremely-high-levels-ultrafin...
1•belter•17m ago•0 comments

Go Concurrency Book

https://antonz.org/go-concurrency/
1•gigatexal•17m ago•0 comments

Disco: Google's Gemini tool creates web apps from browser tabs

https://techcrunch.com/2025/12/11/google-debuts-disco-a-gemini-powered-tool-for-making-web-apps-f...
1•not4uffin•17m ago•0 comments

Unswitching Loops for Fun and Profit

https://xania.org/202512/12-loop-unswitching
2•hasheddan•19m ago•0 comments

Armenia’s ancient 'dragon stones' are the work of a 6,000-year-old water cult

https://newatlas.com/history/armenia-dragon-stones-water-cult/
3•breve•23m ago•0 comments

I would love to get some feedback from data-obsessed climbers (Expo/RN app)

2•codesink•25m ago•0 comments

Censorship in Western Academia and the War in Ukraine

https://www.newglobalpolitics.org/censorship-in-western-academia-and-the-war-in-ukraine/
8•hackandthink•25m ago•1 comments

Help Keep Tor Strong – Donate

https://donate.torproject.org/
4•keepamovin•26m ago•0 comments

Same Cart, Different Price: Instacart's Price Experiments Cost Families

https://groundworkcollaborative.org/work/instacart/
2•boh•26m ago•0 comments

Propolice stack overflow protection in OpenBSD

http://miod.online.fr/software/openbsd/stories/propolice.html
3•fanf2•26m ago•0 comments

Quilter's AI Just Designed an 843-Part Linux Computer

https://venturebeat.com/ai/quilters-ai-just-designed-an-843-part-linux-computer-that-booted-on-the
3•buescher•28m ago•0 comments

Symbolic AI in the Age of LLMs

https://www.youtube.com/watch?v=Atf4DVKGuMg
3•belter•29m ago•0 comments

The Tor Project Is Making a Switch to Rust, Ditches C

https://itsfoss.com/news/tor-rust-rewrite-progress/
37•giuliomagnifico•32m ago•8 comments

Show HN: Synrix – A Zero-Loss, Sub-Microsecond Memory Engine for Edge Compute

https://ryjoxdemo.com/demo
2•JosephjackJR•37m ago•0 comments

Show HN: 360css CSS library inspired by the xbox360 dashboard

https://tarmo1.github.io/360css/
3•Tarmo362•37m ago•0 comments

Show HN: TechAbroad – Launch your global tech career

https://techabroad.io/
2•techabroad•39m ago•0 comments

Reddit Sues Australian Government to Block Social Media Ban

https://www.nytimes.com/2025/12/11/world/asia/reddit-lawsuit-australia-social-media-ban.html
4•perihelions•40m ago•2 comments

Hackernewsletter

https://hackernewsletter.com
2•8organicbits•45m ago•0 comments

Iran to attend World Cup draw after reversing its planned boycott

https://www.theguardian.com/football/2025/dec/04/iran-to-attend-world-cup-draw-after-reversing-it...
2•PaulHoule•45m ago•0 comments