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•8mo 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•8mo 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•8mo 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.

Python consumes a lot of memory; how to reduce the size of objects?

https://habr.com/en/articles/458518/
1•fanf2•1m ago•0 comments

Prevent your Mac from "upgrading" to Tahoe

https://github.com/travisvn/stop-tahoe-update
2•AnonC•2m ago•0 comments

Common Plastic Chemical Found to Feminize Males and Masculinize Females

https://scitechdaily.com/common-plastic-chemical-found-to-feminize-males-and-masculinize-females/
1•DebtDeflation•3m ago•1 comments

Life on Claude Nine

https://babuschk.in/posts/2026-01-25-life-on-claude-nine.html
1•jstanley•4m ago•0 comments

Show HN: About Last Night – QR guest photo sharing for weddings (no app)

https://www.aboutlastnight.lol/blog/about-last-night-app-guide
1•Dragos-Aln•5m ago•1 comments

Show HN: Folding paper once by hand and mailing it once a month

https://folded.one
1•cloudmanager•8m ago•2 comments

Hackers drain $16.8M from Matcha aggregator in SwapNet contract exploit

https://thebitgazette.com/hackers-drain-16-8m-from-matcha-aggregator-in-swapnet-contract-exploit/
1•campusninja•8m ago•0 comments

Break LLM Workflows with Claude's Refusal Magic String

https://hackingthe.cloud/ai-llm/exploitation/claude_magic_string_denial_of_service/
1•donohoe•9m ago•0 comments

Aegis: Privacy-First Parental Controls for AI Chatbots

https://www.parentalsafety.ai/
1•chuckus•11m ago•0 comments

Show HN: Log Hound – AI-first AWS CloudWatch log search tool in Rust

https://github.com/Unayung/log-hound
1•unayung•12m ago•0 comments

Show HN: MCP server that surfaces human experts inside ChatGPT

https://mindpick.me/integrations
1•bogdanmp•12m ago•0 comments

Field of clones: How horse replicas came to dominate polo

https://knowablemagazine.org/content/article/technology/2026/cloned-polo-horses
1•sohkamyung•15m ago•1 comments

Sucking up CO2, refrigerator-sized machine makes gasoline out of thin air

https://www.popsci.com/environment/aircela-gasoline-machine/
1•smurda•18m ago•0 comments

The New Dark Ages

https://yabirgb.com/posts/dark-age/
2•yabirgb•21m ago•0 comments

Response time in man-computer conversational transactions (1968)

https://dl.acm.org/doi/10.1145/1476589.1476628
1•robin_reala•23m ago•0 comments

In Pursuit Of

https://asherr.bearblog.dev/in-pursuit-of/
1•ashvanth•24m ago•0 comments

EU investigates Elon Musk's X over Grok AI sexual deepfakes

https://www.bbc.com/news/articles/clye99wg0y8o
5•vinni2•24m ago•0 comments

"Bitcoin Jesus" Avoided Prison, Thanks to One of the "Friends of Trump"

https://www.propublica.org/article/bitcoin-jesus-roger-ver-tax-evasion-friends-of-trump
2•robtherobber•24m ago•0 comments

Show HN: Zero – Serverless ECMWF weather visualization (WebGPU)

https://zero.hypatia.earth/
1•noiv•26m ago•1 comments

Original TNG "Polarmotion" Display

https://old.reddit.com/r/TNG/comments/1qmov4h/original_tng_polarmotion_display/
1•darkscape•27m ago•0 comments

Elon Musk's X Faces EU Inquiry over Sexualized AI Images Generated by Grok

https://www.nytimes.com/2026/01/26/business/european-union-x-grok-ai-images-musk.html
3•donohoe•27m ago•0 comments

EU Commission investigates Grok and X's recommender systems under the DSA

https://ec.europa.eu/commission/presscorner/home/en
3•amarcheschi•28m ago•0 comments

Captain's Deck – A dual-pane file manager for macOS

https://www.captains-deck.com/
2•mmsols•28m ago•1 comments

Exit

https://tantaman.substack.com/p/the-table
1•tantaman•29m ago•0 comments

GraphCore

https://en.wikipedia.org/wiki/Graphcore
1•ogogmad•31m ago•0 comments

Tell HN: Merritt Dawsley" appears to be a synthetic recovery persona

1•mayakovic•31m ago•0 comments

Strongest battery paves way for light, energy-efficient vehicles

https://www.chalmers.se/en/current/news/ims-world-s-strongest-battery-paves-way-for-light-energy-...
2•mullsork•33m ago•1 comments

Ask HN: Is anyone using ChatGPT or an equivalent with their family?

1•asim•33m ago•0 comments

India–New Zealand FTA: A People-First Pact for a New Era of Trade

https://www.fairobserver.com/region/asia_pacific/india-new-zealand-fta-a-people-first-pact-for-a-...
1•koolhead17•33m ago•0 comments

Variable Width Font Rendering

https://bonaroo.nl/2026/01/19/variable-width-text.html
1•puuush•36m ago•0 comments