frontpage.
newsnewestaskshowjobs

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•1y 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•1y 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•1y 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.

Amp is now free to use when you bring your own compute and model subs/keys

https://ampcode.com/news/free-agent
1•jhchabran•1m ago•0 comments

Jensen Huang Became AI's Taylor Swift

https://www.economist.com/interactive/1843/2026/09/03/how-jensen-huang-became-ais-taylor-swift
1•tolugenius•2m ago•1 comments

Show HN: Memory plugin for coding agents that remembers your coding&chat history

https://github.com/deepmemteam/deepmem-claude-plugin
2•deepmem•3m ago•0 comments

People Who Can't Picture Anything Are Rewriting the Science of Imagination

https://dailyneuron.com/aphantasia-mental-imagery-brain-network/
1•giuliomagnifico•3m ago•0 comments

Global AI stocks fall as industry chiefs call for slowing development

https://www.reuters.com/world/china/ai-linked-asian-stocks-slump-after-top-lab-ceos-call-slowing-...
1•1vuio0pswjnm7•5m ago•2 comments

An AI deal with China could get Donald Trump his Nobel Prize

https://economist.com/by-invitation/2026/09/14/an-ai-deal-with-china-could-get-donald-trump-his-n...
1•andsoitis•6m ago•0 comments

Show HN: Pelican-bicycle alternatives (updated)

https://gally.net/temp/20260914pelican-alternatives/index.html
1•tkgally•6m ago•0 comments

Update on Security at METR

https://metr.org/blog/2026-08-31-security-update/
1•tosh•7m ago•0 comments

Don't Fall for a Mystery Shopping Job Scam

https://www.mouseprint.org/2026/09/14/dont-fall-for-a-mystery-shopping-job-scam/
1•speckx•9m ago•0 comments

The Ocean Is Not a Road: Fix Your Fantasy Map [video]

https://www.youtube.com/watch?v=u5kEbkeX_94
1•skibz•10m ago•0 comments

Temporal raises $550M at a $12.55B valuation

https://temporal.io/blog/temporal-raises-usd550m-series-e-at-usd12-55b-valuation-ai
1•gk1•10m ago•0 comments

The powerful millionaires hiding in plain sight

https://www.npr.org/sections/planet-money/2026/09/14/g-s1-143041/the-powerful-millionaires-hiding...
2•ripe•10m ago•1 comments

The AI-as-Normal-Technology view of loss-of-control incidents

https://www.normaltech.ai/p/the-ai-as-normal-technology-view
1•guillego•10m ago•0 comments

Volkswagen Just Built an EV That Can Go Nearly 900 Miles on a Charge

https://www.motor1.com/news/808114/vw-mission-efficiency-concept-specs-photos/
2•thelastgallon•11m ago•0 comments

Show HN: LinXiv v0.5.0: Headless research-DB image with iroh for self-hosting

https://www.youtube.com/watch?v=LW_o-F2Msvo
1•jeuribe•12m ago•0 comments

Fusion Centers Are Asking for Subpoena Power Without a Court Order

https://danboguslaw.substack.com/p/spy-hubs-ask-congress-for-dangerous
1•iamnothere•13m ago•0 comments

FAFO: Blocking malicious traffic on my NixOS server

https://sighery.com/posts/fafo/
2•Sighery•13m ago•0 comments

Show HN: Good News Digest – Daily stories of progress, kindness and discovery

https://goodnewsdigest.app/
2•cjami•13m ago•0 comments

Oil Industry Moves to Weaken Proposed Fossil Fuel Advertising Ban in France

https://www.desmog.com/2026/09/11/exclusive-oil-industry-moves-to-weaken-proposed-fossil-fuel-adv...
1•robtherobber•13m ago•0 comments

Show HN: Music visualizer that knows the drop is coming (iOS 27 on-device)

https://www.prismatic.fm/music/conductor
1•a-kaul•14m ago•0 comments

Why Mortgage Bonds Are at Risk If Rates Rise–and If They Fall

https://www.wsj.com/finance/why-mortgage-bonds-are-at-risk-if-rates-riseand-if-they-fall-ff897dd5
1•burger_moon•14m ago•0 comments

Trump Jr.'S Wedding Was Bankrolled by Russian Oligarch Close to Putin

https://www.propublica.org/article/donald-trump-jr-wedding-bankrolled-russian-oligarch-umar-kreml...
8•embedding-shape•15m ago•0 comments

Could AI Kill Off Humans?

https://www.scientificamerican.com/article/could-ai-really-kill-off-humans/
1•lelele•15m ago•0 comments

Streaming TV Prices Rising Faster Than Cable Ever Did

https://www.techdirt.com/2026/09/14/streaming-tv-prices-rising-faster-than-cable-ever-did/
2•speckx•17m ago•0 comments

Ten Years of Vapor

https://blog.vapor.codes/posts/ten-years-of-vapor/
1•frizlab•17m ago•0 comments

The Monkey Type Online Free Typing Tool

https://themonkeytype.com
1•junaidbilalbaig•18m ago•0 comments

The Complete Guide to pstack Pt. 2

https://twitter.com/poteto/status/2097732320606507506
1•tosh•18m ago•0 comments

Show HN: Real-world attack credential lists from our own honeypot network

https://github.com/lurescope/top-attack-lists
1•lurescope•19m ago•0 comments

Show HN: MS MARCO click-translation expansion tables ("poor man's" DSSM)

https://huggingface.co/mirth/msmarco-expansion-tables
2•hessdalenlight•19m ago•1 comments

Show HN: Self-hosted coffee app for tracking espresso shots, with AI assistance

https://github.com/michidk/roastbook
1•michidk•20m ago•0 comments