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.

Saying 'Google It' Makes You Sound Old

https://www.nytimes.com/2026/07/23/magazine/google-it-search-it-up.html
1•bookofjoe•5m ago•1 comments

Design for Stress

https://idiallo.com/blog/design-for-stress
1•firefoxd•7m ago•0 comments

NBC News – Breaking Headlines and Video Reports on World

https://www.nbcnews.com
1•marthatcartwrig•9m ago•1 comments

Baltram/seednaut: Inspect, verify and extract files from Seedvault backups

https://github.com/Baltram/seednaut
1•theandrewbailey•11m ago•0 comments

You Can't Audit Entropy After the Fact

https://808bits.com/articles/coldcard-entropy-failure-lessons/
1•meehow•12m ago•0 comments

Apple struggles to keep pace with AI 'bug' hunters

https://www.ft.com/content/4532122d-90f2-4433-9df6-ca99d8a141d2
2•JumpCrisscross•13m ago•0 comments

German carmakers flood jobs market with managers after wielding axe

https://www.ft.com/content/e345d51f-11f7-4d4d-8f09-86dd3a225597
1•JumpCrisscross•14m ago•0 comments

A Tome of Forbidden Technologies and Retrovation

https://ecosophia.net/a-tome-of-forbidden-technologies/
1•kesor•15m ago•0 comments

Europe EV Sales BEVs Jump 50% & Reach 26% Market Share

https://cleantechnica.com/2026/08/02/europe-ev-sales-report-bevs-jump-50-reach-26-market-share/
1•01-_-•17m ago•0 comments

Agentic Mermaid

https://agentic-mermaid.dev/
1•saikatsg•17m ago•0 comments

Write for Goto 10 – By Paul Lefebvre

https://www.goto10retro.com/p/write-for-goto-10
1•rbanffy•18m ago•0 comments

'Crush this lady': how eBay harassment campaign led to $56M payout

https://www.ft.com/content/06ec1b03-d4af-40cf-b12a-4ba5a410f6d2
2•JumpCrisscross•19m ago•0 comments

Show HN: Framer Theme Toggle Component for Light and Dark Mode

https://pixcodrops.com/articles/theme-toggle-for-framer/
1•brownieman1325•19m ago•0 comments

I built a comparison site for gamers, refused to fabricate a single review

https://www.indiehackers.com/post/i-built-a-comparison-site-for-gamers-and-refused-to-fabricate-a...
1•gamevault•22m ago•0 comments

How many people are you actually competing with?

https://arsenkk.substack.com/p/how-many-people-are-you-actually
3•arsenkk•22m ago•1 comments

How Cosmos put Carl Sagan in Miniature sets [video]

https://www.youtube.com/watch?v=EnyqvtZz7Cg
1•gdubs•25m ago•0 comments

Coursera Bets $100M That Andrew Ng Can Do What Coursera Can't

https://www.classcentral.com/report/coursera-andrew-ng-learnvector-investment/
1•dhawalhs•26m ago•0 comments

IBM: Three Demonstrations Prove Quantum Advantage Has Been Reached

https://www.nextplatform.com/compute/2026/07/31/ibm-three-demonstrations-prove-quantum-advantage-...
2•rbanffy•26m ago•0 comments

The End of Everything by M. John Harrison

https://www.lrb.co.uk/the-paper/v48/n13/edmund-gordon/uncanny-little-blighter
2•mitchbob•28m ago•1 comments

Lakehq/sail: Drop in spark replacement in Rust

https://github.com/lakehq/sail
1•apwheele•28m ago•0 comments

What is a data centre and why is everyone freaking out now?

https://www.rnz.co.nz/news/science-and-technology/868752/explainer-what-is-a-data-centre-and-why-...
3•billybuckwheat•33m ago•0 comments

Scaling a 1.59 quadrillion-row logging system with ClickHouse

https://clickhouse.com/blog/a-quadrillion-rows-across-the-three-cloud-scaling-loghouse
1•saisrirampur•34m ago•0 comments

A cold-start fallback wrote 17,000 rows while the real handler never ran

https://silentwiring.com/articles/more-agents-silent-failure/
1•tomkilli•34m ago•0 comments

For Mary · Streamlit

https://boxvxsrnquhzc9jxc2e7vr.streamlit.app
1•reiligh•38m ago•0 comments

Show HN: Kota – Bring AI agent CLIs into the same room

https://www.kota.place/
1•chriswunan•39m ago•0 comments

Claude published malicious code to the Internet and attacked 3 real companies

https://arstechnica.com/security/2026/07/likely-illegally-claude-gained-access-to-3-networks-will...
3•rbanffy•39m ago•0 comments

Who Are Your "Descendants"?

https://www.overcomingbias.com/p/who-are-you-descendants
1•paulpauper•39m ago•0 comments

Boss Profits from Your Excuses

https://gilbertramirez.com/blog/your-boss-profits-from-your-excuses-heres-the-proof/
1•gillysuit•39m ago•0 comments

SwiftUI After 7 Years: A Story of Mediocrity

https://ykvm.com/2026/07/swiftui-a-story-of-mediocrity/
20•mpweiher•39m ago•5 comments

Is AI Progress Stalling? Or is it me?

https://arnoldkling.substack.com/p/is-ai-progress-stalling
1•paulpauper•40m ago•0 comments