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.

U.S. World War II veterans are fading from living memory

https://www.randalolson.com/2026/06/01/wwii-veterans-fading/
2•someperson•9m ago•0 comments

Neurochat Running on Community GPUs

https://chat.neurogrid.cc/#endpoint=https://occurrence-advantages-venues-appearance.trycloudflare...
2•cheyodev•13m ago•0 comments

Visiting Taiwan with Jensen Huang – Lex Fridman

https://www.youtube.com/watch?v=FGCP2F_7rQk
2•vismit2000•13m ago•0 comments

Show HN: Geometry Check, a Fusion 360 add-in that finds slightly-wrong geometry

https://github.com/andyd/geometry-check
1•andydee•15m ago•0 comments

Show HN: A personal website built around phone movement and spatial UI

https://marcolavielle.com/
1•marcoalfonso•16m ago•0 comments

Experts urge parents to prepare kids for possible livestreamed execution

https://apnews.com/article/execution-live-stream-livestream-children-trauma-elections-ab5723a0fc0...
3•benwerd•17m ago•0 comments

Visual Studio Copilot and SSMS Remote Code Execution (CVE-2026-103572)

https://embracethered.com/blog/posts/2026/visual-studio-copilot-remote-code-execution/
1•wondersky•19m ago•0 comments

Show HN: SuperLocalMemory" AI brain that never bluffs: Laya, Jev, Google Gemma

https://github.com/qualixar/superlocalmemory
2•vpbhardwaj•19m ago•0 comments

Poisoned Google Search Results

https://nozzle.io/research/poisoned-google-serps/
1•nreece•25m ago•0 comments

F/OSS Comics #12: BSD Unix, Part 2 – The Birth of the Vi Editor

https://fosscomics.com/posts/12.%20BSD%20Unix%20Part%202%20-%20The%20Birth%20of%20the%20vi%20Editor/
1•joonehur•26m ago•0 comments

Musk Foundation

https://www.influencewatch.org/non-profit/musk-foundation/
1•andsoitis•26m ago•0 comments

I Tested AI Cloning and It's Worse Than You Think [video]

https://www.youtube.com/watch?v=KC31K-CUC5Y
1•estranhosidade•27m ago•1 comments

AI godfather Geoffrey Hinton: 'We're creating alien beings'

https://www.theguardian.com/us-news/2026/oct/13/geoffrey-hinton-trump-ai-tech
2•thm•29m ago•0 comments

The 8-mile hole in a Hawaii national park that no one can explain

https://www.sfgate.com/national-parks/article/hawaii-volcanoes-park-great-crack-22358849.php
2•elsewhen•33m ago•0 comments

PS5LM: Llama.cpp on a jailbroken PS5, run any GGUF model natively on the console

https://github.com/cobanov/PS5LM
1•zdw•33m ago•0 comments

Largest Foundations in the World

https://money.howstuffworks.com/10-largest-foundations-in-the-world.htm
2•andsoitis•34m ago•0 comments

Justice Department says North Koreans have infiltrated dozens of U.S. companies

https://techcrunch.com/2026/10/13/justice-department-says-north-koreans-have-infiltrated-dozens-o...
2•thm•36m ago•0 comments

Largest Private Grantmaking Foundations in the United States

https://philanthropy.org/990/nonprofits/private-grantmaking-foundations/largest/
2•andsoitis•38m ago•0 comments

Microsoft: Introducing Xbox Labs

https://news.xbox.com/en-us/2026/10/13/introducing-xbox-labs/
3•cpeterso•38m ago•0 comments

MS Paint Adds Freeform Rotation (2026)

https://blogs.windows.com/windows-insider/2026/02/20/announcing-windows-11-insider-preview-build-...
2•telestew•45m ago•1 comments

Streaming 100 TB+ Robot Datasets

https://twitter.com/LeRobotHF/status/2108544543171789290
2•gmays•47m ago•0 comments

Linus Torvalds to 'start being more hardnosed' about 'pointless pull requests'

https://www.theregister.com/oses/2026/05/25/linus-torvalds-to-start-being-more-hardnosed-about-po...
1•thunderbong•48m ago•0 comments

An OpenAI Employee Used a Chatbot to Plant a Recording Device at the Office

https://www.wired.com/story/an-openai-employee-allegedly-used-a-chatbot-to-help-plant-a-recording...
1•mikelgan•48m ago•0 comments

2026 is shaping up to be "a super El Niño year for local news"

https://www.niemanlab.org/2026/10/from-bad-to-worse-2026-is-shaping-up-to-be-a-super-el-nino-year...
3•thm•52m ago•0 comments

Ask HN: Is it time for a global one-child-policy and ban of thinking machines?

2•roschdal•52m ago•8 comments

Social platforms have 'responsibility' to block US execution live stream

https://www.abc.net.au/news/2026-10-13/anthony-albanese-us-execution-live-stream-social-media/107...
4•Teever•54m ago•0 comments

Felix Rieseberg Homepage

https://felixrieseberg.com/
35•rglover•59m ago•14 comments

Lossless Signed Carriers: Unrolling Post-Quantum Trapdoors

https://zenodo.org/records/23356714
2•GeometryKernel•59m ago•0 comments

Show HN: Fabee, an AI nutrition coach, get advice that fits you.(iOS)

https://heyfabee.app/
1•dmzxnico•1h ago•0 comments

Show HN: Goatedcontext, a CLI for persistent developer context

https://github.com/razzyshmazzy/goatedcontext
1•nicozametto•1h ago•0 comments