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.

Carbon memory safety: a first deep dive

https://chandlerc.blog/slides/2026-memory-safety-deep-3/#/
1•coffeeaddict1•23s ago•1 comments

What's happening in a chronic wound? Bacteria, Biofilms, & Senescent cells

https://www.thenakedscientists.com/articles/interviews/whats-happening-chronic-wound
1•zeristor•1m ago•0 comments

Framework responds to complaints that BIOS update bricks Ryzen 7040 laptops

https://arstechnica.com/gadgets/2026/08/framework-responds-to-complaints-that-bios-update-bricked...
1•anthonj•4m ago•1 comments

AWS London gets a new AZ (EU-west-2d)

https://old.reddit.com/r/aws/comments/1vskxac/london_gets_a_4th_az/
1•znpy•4m ago•0 comments

New research shows how psychedelics reorganise the patterns in your brain

https://theconversation.com/new-research-shows-how-psychedelics-reorganise-the-patterns-in-your-b...
1•XzetaU8•4m ago•0 comments

Credit card purchases approved with wrong PIN. Bank says there's nothing wrong

https://www.thestar.com/business/this-etobicoke-business-owner-typed-the-wrong-pin-three-times-vi...
1•computator•4m ago•0 comments

China's wind and solar megabases face a coal test

https://globalenergymonitor.org/research/chinas-wind-and-solar-megabases-face-coal-test
1•leonidasrup•6m ago•0 comments

There are 67 items to manually delete in Google My-Activity

1•whyagaindavid•8m ago•0 comments

China's humanoid robot boom is fueled by government-backed training centres

https://www.ft.com/content/26735a23-315f-47ef-8cf2-6c6ea9713998
1•giuliomagnifico•8m ago•0 comments

Stemdeck – Free, open-source, local stem separation

https://github.com/stemdeckapp/stemdeck
1•m_kos•10m ago•0 comments

Qwen 3.8 27B is a great open model

https://williamcallahan.com/blog/qwen-3-8-27b-is-a-great-open-model
2•wcallahan•11m ago•0 comments

Zombie Cards Back Online: Reviving Expired Credit Cards for Contactless Payments

https://www.usenix.org/conference/usenixsecurity26/presentation/anwar
1•nixass•11m ago•0 comments

Markdown-den as an issue tracker for agentic workflows

https://www.markdown-den.com/blog/issue-tracker-for-agentic-workflows
1•dguridi•13m ago•0 comments

Physical Implant Attack on the Boeing 737 [pdf]

https://www.usenix.org/system/files/usenixsecurity26-crow.pdf
2•rbanffy•13m ago•0 comments

Seoul to cover all sidewalks with shade by 2028 to combat heat waves

https://english.kyodonews.net/articles/-/82572
1•_____k•13m ago•0 comments

Show HN: Talecut – Turn a movie or TV episode into vertical micro-episodes

https://talecut.com/
1•oscarallombert•15m ago•0 comments

What contemporary artists read, watch and listen to

https://contxt.art/in-contxt
1•scriptedfantasy•17m ago•1 comments

Why is there no programmatic access to the Start menu pin list? (2003)

https://devblogs.microsoft.com/oldnewthing/20030903-00/?p=42673
1•ano-ther•18m ago•0 comments

Does EdgeAI and Robotics requires ad-hoc network

https://www.youtube.com/watch?v=Pkrqur86iGs
1•jasonhao518•20m ago•1 comments

Florida police officer accused of using Flock AI cameras

https://www.dexerto.com/entertainment/florida-police-officer-accused-of-using-ai-flock-cameras-to...
1•01-_-•20m ago•0 comments

Gptel Emacs: Beyond Just a Chat Interface (YT)

https://www.youtube.com/watch?v=xHEnWvKmSKM
1•signa11•21m ago•0 comments

Polly [.Net library] demands Open Source Maintenance Fee

https://thepollyproject.org/2026/07/14/polly-osmf-announcement.html
1•xnorswap•21m ago•1 comments

U.S. preparing to foce Netherlands to ban ASML from selling to China

https://nltimes.nl/2026/08/20/us-preparing-foce-netherlands-ban-asml-selling-china
3•01-_-•24m ago•0 comments

Python Code Quality with Agents

https://github.com/wemake-services/wemake-python-styleguide
1•sobolevn•27m ago•0 comments

It used to be our imperfect bodies that made us insecure. With AI, its our minds

https://www.theguardian.com/commentisfree/2026/aug/20/bodies-ai-minds-history-technology-humans
1•novaRom•29m ago•0 comments

Samuel: A Silly Speech Model

https://vvolhejn.com/blog/2026-08-17-samuel
1•QuantumNomad_•31m ago•0 comments

SQLite for Everything

https://joecode.com/2026-08-19-sqlite3/
5•mpweiher•34m ago•1 comments

Our security harness can hack to get root 9/10 times

https://donely.ai/ai-employees/autonomous-security-agent
2•Stanlyya•35m ago•1 comments

The Expurgation of Maniac Mansion for the Nintendo Entertainment System

https://www.crockford.com/maniac.html
2•weinzierl•40m ago•0 comments

VS Code in the Terminal

https://github.com/zenbu-labs/terminal-code
2•dsr12•43m ago•2 comments