frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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.

Obsidian plugins are (mostly) dangerous

https://zeroquarry.com/research/excalidraw-vulnerabilities/
1•eskibars•45s ago•1 comments

Standard Charter CEO Replaces 8000 "Lower Value Humans" with AI

https://www.channelnewsasia.com/business/standard-chartered-reduce-7000-roles-2030-6129761
2•gmerc•8m ago•1 comments

The Case for Compilers: A Look at SPEC CPU 2026 on LLVM 22

https://www.servethehome.com/the-case-for-compilers-a-look-at-spec-cpu-2026-on-llvm-22/
1•csmantle•11m ago•0 comments

Tokenspeed – How fast is 10 tokens per second really?

https://mikeveerman.github.io/tokenspeed/?rate=30&mode=code
2•javatuts•12m ago•1 comments

Rule of Thirds

https://en.wikipedia.org/wiki/Rule_of_thirds
1•nomilk•14m ago•0 comments

NPM invalidates use of fine-grained tokens that bypass 2FA

https://docs.npmjs.com/trusted-publishers/
1•meander_water•20m ago•0 comments

How to Kill a Blog

https://robertbirming.com/how-kill-blog/
2•James72689•25m ago•0 comments

Your Read Model Doesn't Always Need a Database

https://docs.eventsourcingdb.io/blog/2026/05/21/your-read-model-doesnt-always-need-a-database/
1•goloroden•29m ago•0 comments

Show HN: ISSforAPUSH is conducting an "aggregated interview"

https://issforapush.netlify.app
1•audreyfei•36m ago•0 comments

Show HN: QuiteGPT – makes GPT response shorter

https://quiet-gpt.craftgarden.io/
1•leapoahead1•38m ago•0 comments

I made an AI Interior consultant

https://studio.mystofa.com/en-US
2•assorium•39m ago•0 comments

Bitcoin's Power Law: Weak Structure, Strong Forecasts

https://arxiv.org/abs/2605.21316
2•CarlosBaquero•40m ago•0 comments

Consciousness, Gödel, and the Boundary of the Box

https://twitter.com/VFD_org/status/2057053649315013042
1•__patchbit__•41m ago•0 comments

YAML? That's Norway Problem

https://lab174.com/blog/202601-yaml-norway/
1•theanonymousone•47m ago•1 comments

New on Platform

1•rockstaradi•49m ago•0 comments

Ye Olde RFC

https://github.com/gabinante/ye-olde-rfc
1•oooyay•49m ago•0 comments

Nostr-VPN Is one of the most useful things in open source

https://git.iris.to/#/npub1xdhnr9mrv47kkrn95k6cwecearydeh8e895990n3acntwvmgk2dsdeeycm/nostr-vpn
2•abhsag24•50m ago•0 comments

70% of Faculty Vote to Overhaul Harvard Grading with a Cap

https://www.thecrimson.com/article/2026/5/20/fas-passes-a-grade-cap/
1•k2enemy•50m ago•0 comments

List of Alleged Extraterrestrial Beings

https://en.wikipedia.org/wiki/List_of_alleged_extraterrestrial_beings
3•thunderbong•55m ago•0 comments

Software engineering is the tipping point [video]

https://www.youtube.com/watch?v=9t9Kj2f6wtU
1•azhenley•57m ago•0 comments

The Mysterious XF86AudioPlay Issue

https://michael-prokop.at/blog/2026/05/20/the-mysterious-xf86audioplay-issue/
2•JNRowe•1h ago•0 comments

VPNs: The "Most Trusted" Security Tool Until Claude Roasts It in a Weekend

https://www.hacktron.ai/blog/cve-2026-0265-panos-globalprotect-cas-auth-bypass
3•jordybg•1h ago•0 comments

Show HN: Macfigure – Mac configuration in pkl. Simple alternative to Nix-Darwin

https://github.com/Quintisimo/macfigure
1•quintisimo•1h ago•0 comments

Ask HN: Transition from Engineering Manager to IC

1•lavsv•1h ago•0 comments

The Secrets Revealed in SpaceX's IPO Filing

https://www.wsj.com/business/spacex-ipo-takeaways-cea33689
1•1vuio0pswjnm7•1h ago•0 comments

SpaceX Filing Reveals $4.28B Loss, Musk's Tight Grip (3)

https://news.bloomberglaw.com/capital-markets/musks-spacex-files-publicly-for-nasdaq-ipo-under-sy...
4•1vuio0pswjnm7•1h ago•0 comments

SpaceX IPO filing lays bare losses and Musk control as it stakes future on AI

https://www.reuters.com/legal/transactional/bound-mars-elon-musks-spacex-unveils-filing-blockbust...
4•1vuio0pswjnm7•1h ago•0 comments

Reconnecting. – – 5/5 why don't they fix codex

1•apoorvdarshan•1h ago•0 comments

Why is writing good test cases still painfully manual in 2026?

https://calendly.com/qualityfolio2026/30min
1•Daniel_Carter•1h ago•0 comments

Lazydiff: Terminal PR Review with AST-Aware Semantic Diff Rendering

https://github.com/Ataraxy-Labs/lazydiff
1•rohanucla•1h ago•0 comments