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.

After rewriting SQLite in Rust, Turso turns its sights on Postgres

https://www.theregister.com/databases/2026/07/29/after-rewriting-sqlite-in-rust-turso-turns-its-s...
1•theanonymousone•2m ago•0 comments

Kirin XE90 and X90 Plus mark Huawei's first PC processors despite sanctions

https://www.notebookcheck.net/Kirin-XE90-and-X90-Plus-mark-Huawei-s-first-public-unveiling-of-PC-...
1•yogthos•3m ago•0 comments

Lose an engine at V1, Falcon 10x holds power on the good side [pdf]

https://www.dassault-aviation.com/wp-content/blogs.dir/1/files/2026/06/Falcon-10X-backgrounder-in...
1•r2sk5t•5m ago•1 comments

APFS is case-insensitive by default

https://swild.dev/dev/apfs-case-insensitive/
2•wslh•5m ago•0 comments

Show HN: a Rust coding agent that is compatible with Claude Code plugins/skills

https://github.com/KonghaYao/peri
1•sowild_fun•7m ago•0 comments

US Considers Creating Finra-Like Watchdog to Vet Top AI Models

https://www.bloomberg.com/news/articles/2026-07-17/us-considers-creating-finra-like-watchdog-to-v...
2•achow•8m ago•0 comments

Musk's X says Australia social media ban crackdown undermines international law

https://www.reuters.com/legal/government/musks-x-says-australia-social-media-ban-crackdown-underm...
2•1vuio0pswjnm7•9m ago•0 comments

Cocoa prices are easing. So why is chocolate still so expensive?

https://www.cnbc.com/2026/07/26/cocoa-prices-chocolate-lindt-barry-callebaut-nestle.html
1•walterbell•9m ago•0 comments

Closed models refuse to help researcher swat Linux bug

https://www.theregister.com/ai-and-ml/2026/07/29/closed-models-refuse-to-help-researcher-swat-lin...
1•justworks•11m ago•0 comments

NSF pilots 4-year PhDs with industry research placements

https://www.nsf.gov/news/nsf-partners-universities-industry-pilot-initiative-four
2•osnium123•13m ago•0 comments

AI Facebook Ads Creator: Create High-Converting Video Ads

https://textideo.com/use-cases/facebook-ad-video-generator
1•cloaud•14m ago•0 comments

Things You Never Hear

1•mr-pink•15m ago•0 comments

Show HN: Numbat – Agent Runtime Detection and Response

https://github.com/perplexityai/numbat
1•kpollls•16m ago•0 comments

Roundup of August 2026 Bootstrapper Events

https://bootstrappersbreakfast.com/2026/07/28/roundup-of-august-2026-bootstrapper-events/
1•skmurphy•24m ago•1 comments

Scientists find a simple way to stop cavities without drilling

https://www.sciencedaily.com/releases/2026/07/260729010719.htm
2•ninjahawk1•26m ago•0 comments

Kuna: Decompiler Development in the Age of Coding Agents

https://noelo.org/blog/kuna-release/
2•matt_d•27m ago•0 comments

Show HN: How we use AI agents for support in an open-source project (Seafile)

2•Daniel-Pan•28m ago•0 comments

OpenAI cyberattack caused by rogue AI agent worse than initially reported

https://www.tag24.com/en/tech/openai-reveals-cyberattack-caused-by-rogue-ai-agent-was-worse-than-...
1•geoffbp•30m ago•0 comments

Nvidia's chips may be novel, but its 'circular financing' isn't

https://www.ft.com/content/33714af0-a646-4271-8078-49a87182917f
2•justworks•33m ago•0 comments

Scientists Uncover Hidden Structures Beneath the Amazon

https://www.sciencealert.com/completely-transformed-my-understanding-scientists-uncover-hundreds-...
1•thunderbong•35m ago•0 comments

Can you make a Wii U gamepad from a Raspberry Pi? [video]

https://www.youtube.com/watch?v=si-TUEwC5_M
3•mister_mort•38m ago•0 comments

We discovered a new variant of Super Mario Bros

https://nintendowire.com/news/2026/07/29/we-discovered-a-new-super-mario-bros-variant/
1•hn1986•43m ago•0 comments

Art as Compression

https://feed.grantcuster.com/post/2026-07-29-10-20-08-art-as-compression
1•msephton•50m ago•0 comments

Higher Airfares Are Looming on Busy Routes as AI Squeezes Out Bargains

https://www.bloomberg.com/news/articles/2026-07-29/higher-airfares-loom-on-busy-routes-as-ai-sque...
3•petethomas•51m ago•0 comments

xAI sues Minnesota over its law banning 'nudification' technology

https://apnews.com/article/minnesota-artificial-intelligence-nudification-x-elon-musk-deepfake-13...
8•devonnull•55m ago•4 comments

Talk to Your Area (Askaround.me)

1•SahibzadaAM•1h ago•0 comments

Show HN: Legionlinuxtui – Control Lenovo legion laptops in the terminal

https://github.com/nooneknowspeter/legionlinuxtui
3•nooneknowspeter•1h ago•0 comments

The Programming Tourist

https://amrshawky.com/posts/cs-correction/
3•amr_shawky•1h ago•0 comments

Is Mythos good at cyber because it kept hacking Anthropics sandboxes in training

https://www.lesswrong.com/posts/QKDoZe6EKhxnFjLWK/is-mythos-good-at-cyber-because-it-kept-hacking...
3•lukaspetersson•1h ago•0 comments

The Art of Life [video]

https://www.youtube.com/watch?v=7gUh8j5ui0o
2•momentmaker•1h ago•0 comments