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.

The Living Internet

https://www.livinginternet.com
1•hkhn•1m ago•0 comments

Internet History – One Page Summary

https://www.livinginternet.com/i/ii_summary.htm
1•hkhn•2m ago•0 comments

Additively Manufactured Dragonfly-Inspired Wings for Flapping Vehicles

https://www.mdpi.com/2313-7673/10/12/849
1•PaulHoule•3m ago•0 comments

Profession by Isaac Asimov (1957)

https://web.archive.org/web/20201109034130/https://www.abelard.org/asimov.php
1•AndyKelley•4m ago•0 comments

Defense Secretary tours SpaceX missile startup

https://www.latimes.com/business/story/2026-01-10/secretary-of-defense-pete-hegseth-tours-long-be...
1•spacedoors•5m ago•0 comments

Criminal charges against Fed Chairman for defying POTUS wishes

https://www.nytimes.com/2026/01/11/us/politics/jerome-powell-fed-inquiry-trump.html
4•Spooky23•6m ago•1 comments

The U.S. Government Just Followed Through on Its Ban of DJI Drones

https://www.popularmechanics.com/technology/robots/a69937082/us-bans-new-foreign-made-drones/
3•RyanShook•6m ago•0 comments

Tintcd: Directory-aware terminal theming for PowerShell. CD, but colorful

https://github.com/ymyke/tintcd
1•thunderbong•9m ago•1 comments

The Good Club

https://www.thegoodclub.com
1•sans_souse•10m ago•0 comments

Show HN: 2k or Nothing – A Social Platform Dedicated to Long-Form Content

https://2k-or-nothing.com/feed
1•Lbesecker195•12m ago•0 comments

Jon Skeet Facts

https://meta.stackexchange.com/questions/9134/jon-skeet-facts
1•ravenical•14m ago•1 comments

OAuth 2.1 Dynamic Client Registration for AWS BedrockAgentCore Gateway

https://github.com/orgs/stache-ai/discussions/5
1•Jtpenny•14m ago•0 comments

Serverless RAG and MCP on AWS with S3Vectors and Agentcore

https://github.com/orgs/stache-ai/discussions/4
1•Jtpenny•14m ago•0 comments

Reverse-engineering another Ursa Major classic: the StarGate 323

https://www.temeculadsp.com/journal/understanding-timing-circuits
1•johnwheeler•17m ago•0 comments

Show HN: AeroTag – Tag-based workspace management for AeroSpace (macOS)

https://typester.dev/blog/2026/01/11/tag-based-workspace-management-with-aerospace
1•typester•19m ago•1 comments

Hubble Telescope's Final Countdown: Could It Disappear Sooner Than Expected?

https://dailygalaxy.com/2026/01/hubble-countdown-could-it-disappear-sooner/
2•TMWNN•24m ago•0 comments

Token-Count-Based Batching: Faster, Cheaper Embedding Inference for Queries

https://www.mongodb.com/company/blog/engineering/token-count-based-batching-faster-cheaper-embedd...
1•fzliu•25m ago•0 comments

Tuning Random Generators: Property-Based Testing as Probabilistic Programming [pdf]

https://web.cs.ucla.edu/~todd/research/oopsla25a.pdf
2•todsacerdoti•28m ago•0 comments

Show HN: Built a course on buying small businesses – validating demand

https://smalldealschool.com/
1•boring_million•30m ago•1 comments

A $400k payout is putting prediction markets in the spotlight

https://apnews.com/article/prediction-markets-maduro-trades-1f47e737f915fff00c57f03e7390b41f
4•petethomas•33m ago•0 comments

Matchbox Educable Noughts and Crosses Engine

https://en.wikipedia.org/wiki/Matchbox_Educable_Noughts_and_Crosses_Engine
1•icwtyjj•36m ago•0 comments

Big Tech's Ugly Duckling: Can Snap Finally Execute?

https://ossa-ma.github.io/blog/snapchat?
1•ossa-ma•37m ago•2 comments

Live Captions

https://avc.xyz/live-captions
1•wslh•40m ago•0 comments

You don't need a skill registry (for your CLI tools)

https://solmaz.io/skillflag
2•hosolmaz•46m ago•0 comments

The US Empire is going supernova

https://simplicius76.substack.com/p/the-us-empire-is-going-supernova
1•SanjayMehta•48m ago•0 comments

Ogre 14.5 Released

https://www.ogre3d.org/2026/01/10/ogre-14-5-released
1•klaussilveira•50m ago•0 comments

Show HN: Instagram Saved Collection Downloader

https://chromewebstore.google.com/detail/instagram-saved-collectio/dibmfjgbnhbfhlajpahnbiiabpdabajo
1•qwikhost•54m ago•0 comments

Revolutionary eye injection saved my sight, says first ever patient

https://www.bbc.co.uk/news/articles/c89qyv98lzdo
2•1a527dd5•56m ago•0 comments

Show HN: I built an autopilot investor outreach tool – and it became my startup

https://pilt.ai
1•citizenbab•1h ago•0 comments

SwiftScripting (type-safe AppleScript from Swift)

https://github.com/tingraldi/SwiftScripting
1•frizlab•1h ago•0 comments