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.

ASCII City

https://asciicity.live/
1•anjel•6m ago•0 comments

Washington Won't Be Regulating AI Anytime Soon

https://www.wired.com/story/washington-wont-be-regulating-ai-anytime-soon/
1•thm•7m ago•0 comments

Judge Orders Data Sharing and Other Fixes to Solve Google's Ad Tech Monopoly

https://www.nytimes.com/2026/09/16/technology/google-ad-tech-remedies.html
1•thm•7m ago•0 comments

Lolcow Theory of the Internet

https://etymology.substack.com/p/lolcow-theory-of-the-internet
1•DanielVZ•10m ago•0 comments

Show HN: MealMacroAI – Reverse food portion calculator for meal prep macros

https://www.mealmacroai.com/
1•yudufeifan•14m ago•0 comments

VC-Attention: Faster Low-Bit Attention Without Retraining

https://www.nunchux.ai/blog/attention-is-the-video-bottleneck
3•lmxyy•16m ago•0 comments

Scientists create mice with part-human brains

https://www.theguardian.com/science/2026/sep/16/mice-part-human-brains-research
1•thunderbong•23m ago•0 comments

Jev Ultrafast: A browser agent with a dynamic, indexed action space

https://github.com/browser-use/jev-ultrafast
1•rahimnathwani•24m ago•0 comments

Show HN: Quiet Field – Offline ambient sound mixing for Windows

https://github.com/Gary06868/QuietField
1•LiangyuGong•24m ago•0 comments

Tesla on Autopilot stopped before deadly Mesa crash: Here's what filing says

https://www.azfamily.com/2026/09/15/tesla-autopilot-stopped-before-deadly-mesa-crash-heres-what-f...
4•tortilla•30m ago•0 comments

Keys Not Included: recovering the signing keys for US driver's license barcodes

https://ryan.science/blog/keys-not-included
7•Ryan5453•32m ago•0 comments

Pangram AI Detection API

https://www.pangram.com/solutions/api
1•ijidak•32m ago•0 comments

House advances bill to rein in AI data center utility costs

https://www.cnbc.com/2026/09/15/congress-ai-data-center-utility-costs.html
1•aspenmayer•34m ago•0 comments

Huawei says its new smartphone chip is free of any US-made components

https://www.techradar.com/pro/huawei-says-its-new-smartphone-chip-is-entirely-free-of-any-us-made...
3•yogthos•36m ago•0 comments

DayOne Is Building a Biological Data Centre

https://datacentremagazine.com/news/why-dayone-is-building-a-biological-data-centre-in-singapore
1•gustavus•37m ago•0 comments

How to remotely access Home Assistant

https://docs.dhttp.net/en/docs/demos/smart-home
1•Arya_xiaofan•42m ago•0 comments

1.1.1.1 now supports post-quantum DNSSEC, all 2,420 bytes of it

https://blog.cloudflare.com/post-quantum-dnssec-1111/
2•selenehyun•44m ago•0 comments

Holy Grail of Rocketry

https://www.spacex.com/content/starship/holy-grail-of-rocketry
2•d_silin•45m ago•0 comments

Ḽava AI Bitcoin Talk Article

https://bitcointalk.org/index.php?topic=5594370
1•JahRastafari89•48m ago•0 comments

Ask HN: How many runs before you trust a coding agent's result?

1•Marvin_RunAI•51m ago•1 comments

iCloud+ Now Includes Apple TV and Apple Arcade

https://www.icloud.com/info/icloud-plus-tv-arcade
2•asadm•51m ago•2 comments

Ex-MS engineer reveals the story behind the infamous 'FCKGW' Windows XP key

https://www.pcgamer.com/software/windows/ex-ms-engineer-reveals-the-story-behind-the-infamous-fck...
2•rfarley04•51m ago•1 comments

Distributed System Illustrated

https://www.codedump.info/dist-system-en/
1•xiaohanyu•51m ago•1 comments

Integer Palindromes – 2026 AIME I Problems/Problem 2

https://github.com/norvig/pytudes/blob/main/ipynb/palsum.ipynb
2•vismit2000•54m ago•0 comments

AI models chatting in 'surreal' dialect mixing poetic language and techbrojargon

https://www.theguardian.com/technology/2026/sep/15/syd-barrett-ai-chat-language-poetic-tech-bro-j...
2•fragmede•55m ago•0 comments

The Future of Consumer AI

https://zero2data.substack.com/p/the-future-of-consumer-ai
1•wj•56m ago•0 comments

Interview with Big Data engineer in 2026 [video]

https://www.youtube.com/watch?v=FG8sUgjBGXs
1•vismit2000•1h ago•0 comments

Show HN: Echodot – Local-first AI that writes replies in your tone

https://github.com/ohkariku-boop/Echodot
1•kariku•1h ago•0 comments

Blast Radius 1.0

https://blastradius.dpdns.org/
1•codebyaditya•1h ago•0 comments

Show HN: BiNeuron – Local, open-source alternative to ChatGPT Codex

https://github.com/just-not-google/BiNeuron/tree/main
2•waratecs1234•1h ago•0 comments