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.

Show HN: I built a samurai-themed playable Résumé with React, Phaser, + Laravel

https://rzeczko.com/
1•grzeczko•3m ago•0 comments

Switch between three keyboard languages

https://mnaoumov.dev/posts/2023-12-17-switch-between-three-keyboard-languages/
1•ankitg12•3m ago•0 comments

Vigolium: Open-Source Vulnerability Scanner

https://www.helpnetsecurity.com/2026/05/27/vigolium-open-source-vulnerability-scanner/
1•SVI•4m ago•0 comments

This Film Cost $500,000 to Make. $400,000 Was AI Compute Costs

https://www.wsj.com/cio-journal/this-cannes-film-cost-500-000-to-make-400-000-was-ai-compute-cost...
2•thunderbong•6m ago•1 comments

Cyberduck – Talk with a Duck

https://rubberduckdebugging.com/cyberduck/
2•helloplanets•7m ago•0 comments

Bangladesh measles cases: children die within months

https://www.bbc.com/news/articles/cwy2d5d7wn5o
2•poppypetalmask•12m ago•0 comments

Federal Bureau of Investigations Internet Crime Report 2025 [pdf]

https://www.ic3.gov/AnnualReport/Reports/2025_IC3Report.pdf
1•Cider9986•13m ago•0 comments

California cheese mogul turned to AI agents to save his $50M business

https://finance.yahoo.com/sectors/technology/articles/meet-the-california-cheese-mogul-who-turned...
1•jackson-mcd•14m ago•0 comments

Four Big Takeaways from the FBI's Report on Internet Crime

https://www.wsj.com/tech/cybersecurity/internet-crime-fbi-report-fd7c16e8
2•Cider9986•15m ago•1 comments

98% Match. Wrong Person - Proton [video]

https://www.youtube.com/watch?v=MJ8yFRa_q4E
1•Cider9986•15m ago•0 comments

The Enhanced Games: A night of hypertrophic delirium in a Las Vegas parking lot

https://english.elpais.com/sports/2026-05-26/the-enhanced-games-a-night-of-hypertrophic-delirium-...
1•geox•18m ago•0 comments

Automatic Brag Document Generation

https://bostonaholic.github.io/reflect/
1•ankitg12•20m ago•0 comments

Basics of Film Financing

https://www.theentertainmentexpert.com/blog-2/mc3s3cmf1f5it5kweela85gw68mpv4
1•lispybanana•24m ago•0 comments

Open source toolkit to analyze your ChatGPT/Claude usage from exports

https://github.com/noah-chelednik/llm-export-analytics
2•chedai__•28m ago•0 comments

Gamification and Streaks Improve AI Developer Productivity

https://lobsterone.ai/blog/ai-developer-streaks-gamification/
1•ankitg12•29m ago•0 comments

Private Equity Woos Personal Injury Law Firms

https://news.bloomberglaw.com/business-and-practice/private-equity-woos-personal-injury-law-firms...
1•dbcooper•34m ago•0 comments

How we contain Claude across products

https://www.anthropic.com/engineering/how-we-contain-claude
1•dsr12•35m ago•0 comments

Russian censors target Visual Novel titles on Steam

https://xcancel.com/ebihimes/status/2059363728693608573
2•HelloUsername•36m ago•0 comments

Interactive Additive Synthesis Comic

https://melatonin.dev/additive-synth-comic/what-is-a-harmonic/
1•m_kos•39m ago•0 comments

Poverty Bayes: fitting million-parameter models for pennies with serverless MCMC

https://christopherkrapu.com/blog/2026/poverty-bayes-serverless-mcmc/
1•ckrapu•45m ago•0 comments

How should we think about Starship?

https://mceglowski.substack.com/p/how-should-we-think-about-starship
2•idlewords•46m ago•0 comments

Claude Code as a Daily Driver: Claude.md, Skills, Subagents, Plugins, and MCPs

https://arps18.github.io/posts/claude-code-mastery/
1•arps18•48m ago•0 comments

A locus-coeruleus model for LLM agents (phasic and tonic attention gain)

https://github.com/mrshanebarron/lc-attention
1•iampneuma•51m ago•0 comments

Hugh Broughton: The man designing more of Antarctica than anyone else

https://www.cnn.com/2026/05/25/style/antarctica-architecture-hugh-broughton
1•testfrequency•55m ago•0 comments

Build System Reworked

https://ziglang.org/devlog/2026/#2026-05-26
1•signa11•56m ago•0 comments

The underground mega tunnels redrawing the railway map of Europe

https://www.cnn.com/2026/05/26/travel/europe-rail-base-tunnels-alps
2•tkocmathla•57m ago•0 comments

How to Make xt850 Match xt 850

https://medium.com/@s_nikolaev/how-to-make-xt850-match-xt-850-2175e701fbfe
1•snikolaev•1h ago•0 comments

Self Hosted Jukebox with NFC Cards

https://www.pedaldrivenprogramming.com/2026/05/self-hosted-jukebox-with-nfc-cards/
2•Fudgel•1h ago•0 comments

Annotate PDF: A zero-server, privacy-first PDF annatator

https://annotatepdf.io/
1•prius-lab•1h ago•0 comments

Hows the weather? A theoretically self improving weather app

https://plc.vc/42z
1•pclark•1h ago•1 comments