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.

Russia buys gasoline from India to tackle shortages

https://www.reuters.com/business/energy/russia-buys-gasoline-india-tackle-shortages-sources-say-2...
1•vrganj•1m ago•0 comments

China tells its ethnic minorities to integrate or face consequences

https://www.cnn.com/2026/07/01/china/china-ethnic-unity-law-intl-hnk
1•breve•1m ago•0 comments

Watch a Steam Controller Skitter Itself to Its Charge Puck

https://hackaday.com/2026/07/01/watch-a-steam-controller-skitter-itself-to-its-charge-puck/
1•StingyJelly•2m ago•1 comments

Software Security Analysis in 2030 and Beyond: A Research Roadmap

https://dl.acm.org/doi/10.1145/3708533
1•pjmlp•3m ago•0 comments

The Field Equation, living shader geometry folded into a breathing object

https://sand-morph.up.railway.app/the-field-equation
1•echohive42•3m ago•0 comments

The Fall of the Theorem Economy

https://davidbessis.substack.com/p/the-fall-of-the-theorem-economy
1•varjag•5m ago•0 comments

PlayStation will stop releasing games on discs in 2028

https://www.bbc.com/news/articles/c0ryjyvjq41o
2•isaacfrond•6m ago•0 comments

EU could announce social media ban for kids in September

https://www.euractiv.com/news/eu-plans-to-announce-social-media-ban-for-kids-in-september/
1•Klaster_1•8m ago•0 comments

Notes: Principles of Neural Design

https://act65com.wordpress.com/2018/08/13/notes-principles-of-neural-design/
1•Kotlopou•12m ago•0 comments

Token Leaderboards

https://www.didon.app/blog/ai-token-leaderboards-employee-usage-tracking
2•babakzy•13m ago•0 comments

EU top court dismisses Google fight against record €4B EU antitrust fine

https://www.reuters.com/world/eu-top-court-dismisses-google-fight-against-record-41-billion-eu-an...
3•bontoJR•16m ago•0 comments

Agents.md is lying to your agent – and nothing checks it

https://hunch-pi.vercel.app/blog/post?slug=agents-md-is-lying-to-your-agent
1•huchdave•16m ago•0 comments

Google Reader was building the wrong future

https://buttondown.com/blog/google-reader
2•maguay•20m ago•0 comments

The Age of Personalized Hardware Is Coming

https://geastack.com/blog-the-age-of-personalized-hardware-is-coming
2•arbayi•24m ago•0 comments

Books, Highlights and Progress on Every E-Reader: BookFusion for KOReader

https://www.blog.bookfusion.com/your-books-highlights-progress-onevery-e-reader-bookfusion-for-ko...
2•skillachie•25m ago•0 comments

Synthetic Customers Earn Their Stripes

https://www.bain.com/insights/synthetic-customers-earn-their-stripes/
2•fzliu•25m ago•0 comments

Show HN: MyWritingTwin: an AI Writing Profile that makes LLMs sound like you

https://www.mywritingtwin.com
3•writingdna•35m ago•1 comments

Spent EV Batteries Get Second Life as Higher-Performance Battery Material

https://today.ucsd.edu/story/spent-ev-batteries-get-second-life-as-higher-performance-battery-mat...
3•giuliomagnifico•37m ago•0 comments

EXo Platform 7.2: Native AI Powering a Unified and Intelligent Digital Workplace

https://www.exoplatform.com/blog/exo-platform-7-2-ai-powered-unified-digital-workplace/
3•jaouanebrahim•38m ago•1 comments

A bug I ran into when using Java Modules

https://old.reddit.com/r/java/comments/1ul2wiz/a_bug_i_ran_into_when_using_java_modules_plus/
2•Tomte•39m ago•0 comments

Word Count for Blog Posts: How Long Should Yours Be?

https://fastwordcount.com/blog/real-time-word-counter-boost-your-writing-efficiency/
1•rajkverma123•43m ago•2 comments

Grasse and the London Connection (2025)

https://www.englishmaningrasse.com/post/grasse-and-the-london-connection
1•zeristor•47m ago•0 comments

A 'new way of thinking' boosted math proficiency in an East Palo Alto school

https://www.paloaltoonline.com/east-palo-alto/2026/07/01/a-new-way-of-thinking-boosted-math-profi...
6•hbarka•48m ago•0 comments

Pasqal exceeds 1k Atoms in Quantum Processor

https://www.pasqal.com/newsroom/pasqal-exceeds-1000-atoms-in-quantum-processor/
2•fofoz•52m ago•0 comments

Evaluation order and nontermination in query languages

https://www.rntz.net/post/2026-06-11-datalog-nontermination.html
2•luu•57m ago•0 comments

Show HN: Noter – AI agent dashboard for monitoring coding harnesses locally

https://noterai.tech
1•carlobizzaro•58m ago•0 comments

Show HN: Deterministic Simulation Testing

https://workers.io/blog/deterministic-simulation-testing/
1•chaitanyya•1h ago•0 comments

The Download: Anthropic Launches Claude Science, and California's Carbon Manure

https://www.technologyreview.com/2026/07/01/1139996/the-download-anthropic-claude-science-califor...
2•joozio•1h ago•0 comments

A Machine-Verified Proof of a Quantum-Optimization Conjecture

https://arxiv.org/abs/2606.29687
3•ilaysat•1h ago•0 comments

AgentOS

https://agentos-sdk.dev/
1•handfuloflight•1h ago•1 comments