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.

Put full images in QR codes with dithering

https://www.wowqr.app
1•alentodorov•5m ago•0 comments

A decision tree for picking attention

https://efficientagent.substack.com/p/a-decision-tree-for-picking-attention
1•bnayak25•6m ago•0 comments

1988-1994: Designated Driver Campaign

https://guides.library.harvard.edu/CHC/designateddriver
1•Michelangelo11•6m ago•0 comments

An official Linux version of the Grok bot is now available

https://twitter.com/m0nle0z/status/2093948285929353555
1•iamsyr•11m ago•0 comments

I Built a Free Printable Habit Tracker Because Most Habit Tracking Tools

https://www.indiehackers.com/post/i-built-a-free-printable-habit-tracker-because-most-habit-track...
1•ahmadhussain89•14m ago•0 comments

About Syria's Nightlife

https://twitter.com/i/status/2093806659868950549
1•Michelangelo11•17m ago•0 comments

Show HN: VelocityNote – A tiny Markdown notebook with local AI

https://velocitynote.app/
1•velocityNote•21m ago•0 comments

How the pre-Unicode Amharic encodings were mapped

https://ezra.et/how-amharic-encodings-were-mapped
1•tena_codes•23m ago•0 comments

A Cop's Case for Flock

https://worksinprogress.co/issue/a-cops-case-for-flock/
1•maxall4•27m ago•0 comments

Building Critical Infrastructure with Htmx: Network Automation

https://htmx.org/essays/paris-2024-olympics-htmx-network-automation/
1•rajtilakjee•38m ago•0 comments

The Hugging Face attack surprised me

https://www.planned-obsolescence.org/p/the-hugging-face-attack-surprised
1•tosh•38m ago•0 comments

Ask HN: Should we rename programming into herding?

1•sam_lowry_•39m ago•0 comments

The Implausibility of Intelligence Explosion (2017)

https://medium.com/@francois.chollet/the-impossibility-of-intelligence-explosion-5be4a9eda6ec
2•maxall4•42m ago•0 comments

JFK Conspiracy Lite

https://yarchive.net/blog/jfk/
1•Tomte•43m ago•0 comments

Every Time Larry David Appeared on Seinfeld [video]

https://www.youtube.com/watch?v=L4wWE5r0sPE
1•tzury•43m ago•0 comments

METR: Funding Update

https://metr.org/blog/2026-08-14-funding-update/
1•tosh•45m ago•0 comments

The infrastructure quartermaster: inside a China-nexus state enablement model

https://www.lumen.com/blog/en-us/the-infrastructure-quartermaster-inside-a-china-nexus-state-enab...
1•pir8life4me•49m ago•0 comments

Neural Amp Modeler (Nam) Architecture 2 (A2)

https://www.tone3000.com/blog/introducing-neural-amp-modeler-nam-architecture-2-a2
1•mariuz•54m ago•0 comments

Show HN: RunCoder – A Coding Workspace for Android

https://play.google.com/store/apps/details?id=com.runcode.app&hl=en_US
1•harshal_shinde•58m ago•1 comments

Show HN: ScriptTap – no-root Android automation with an AI script contract

https://play.google.com/store/apps/details?id=com.scripttap&hl=en_US
1•Romka2x•58m ago•1 comments

America's long march toward Chinese-style surveillance state

https://www.ocregister.com/2026/08/14/americas-long-march-toward-chinese-style-surveillance-state/
4•pir8life4me•1h ago•0 comments

How to Build a Thousand-Year-Old Tree

https://www.noemamag.com/how-to-build-a-thousand-year-old-tree/
3•ostacke•1h ago•0 comments

Google: Lake Ontario/Lake America name change in the U.S. will appear in Maps

https://blog.google/products-and-platforms/products/maps/gnis-lake-ontario-lake-america-name-change/
21•lr0•1h ago•10 comments

UK Households can save as plug-in solar panels come to market

https://www.gov.uk/government/news/households-can-save-as-plug-in-solar-panels-come-to-market
5•bryanrasmussen•1h ago•0 comments

Veryfront Code – Full-Stack AI Apps and Agents with TypeScript and React

https://github.com/veryfront/veryfront-code
3•kojiwakayama•1h ago•0 comments

Have We Seen an Acceleration in Discoveries?

https://metr.org/notes/2026-08-14-llm-contribution-to-discoveries/
2•tosh•1h ago•0 comments

Show HN: Masareef – Android expense tracker that reads bank alerts on-device

https://play.google.com/store/apps/details?id=com.mohamedgado.masareef&hl=en_US
2•mgado•1h ago•0 comments

Show HN: N8n community node for Shotium – screenshot and OG image API

https://github.com/shotium/n8n-nodes-shotium
2•foodpad•1h ago•0 comments

X Window System at 40

https://blog.dshr.org/2024/07/x-window-system-at-40.html
4•mariuz•1h ago•0 comments

Selling Out

https://www.seangoedecke.com/selling-out/
5•johnny313•1h ago•0 comments