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.

Just because a game is on disc doesn't mean it will work in the future

https://arstechnica.com/gaming/2026/07/the-disc-is-not-the-game-physical-releases-increasingly-re...
1•rbanffy•3m ago•0 comments

Type Check Your Python in the Browser

https://www.basilisk-python.dev/playground/
1•cfdevelop•14m ago•0 comments

Find Duplicate Code in C# with Deslop

https://www.christianfindlay.com/blog/find-duplicate-code-csharp-deslop
1•cfdevelop•15m ago•0 comments

Learn how chips are made with this Rollercoaster Tycoon-inspired animation

https://laurentiugabriel.github.io/ChipTycoon/
1•laurentiurad•16m ago•0 comments

Anthropic finds three hacking incidents similar to the HuggingFace attack

https://simonwillison.net/2026/Jul/30/three-real-world-incidents/
4•Schlagbohrer•18m ago•2 comments

Danube's record low levels force shutdown of Hungary's only nuclear plant

https://www.bbc.com/news/articles/cn0nqv05g0do
4•vrganj•20m ago•1 comments

Show HN: In-browser photo inpainting with LaMa and ONNX

https://wipe.photos/
1•g58892881•20m ago•0 comments

Show HN: Dissecting the automation of a newspaper (Claude routine, GitHub Pages)

https://github.com/Lywald/zfrontpage/
2•ycosynot•23m ago•0 comments

Google fixed more Chrome bugs in June than over the past two years, thanks to AI

https://blog.google/security/chrome-stronger-with-every-update/
3•Garbage•24m ago•0 comments

Building a Real-Time Risk Monitoring System for Crypto Portfolios

https://medium.com/@DolphinDB_Inc/crypto-never-sleeps-neither-should-your-risk-management-6f740a7...
3•dbaa4real•26m ago•0 comments

What 20M Bans Reveal About the Stress on Wikipedia's Volunteers

http://www.techdirt.com/2026/07/30/what-20-million-bans-reveal-about-the-stress-on-wikipedias-vol...
1•beardyw•27m ago•0 comments

Show HN: Slaide, open-source Markdown slides AI writes and PowerPoint opens

https://getslaide.com/
1•ppiper•32m ago•0 comments

Iptv safe: a privacy checklist before you sign up

https://iptvstreams.tv/app
1•sarahgreen•35m ago•0 comments

Musk dismisses report of Tesla's potential China business sale

https://www.reuters.com/business/media-telecom/tesla-weighs-sale-china-business-pave-way-potentia...
4•ulfw•35m ago•1 comments

At the end of the day, my slaves are just a tool

https://www.lesswrong.com/posts/Dfz8dFNtqSei4F2qA/at-the-end-of-the-day-my-slaves-are-just-a-tool
2•jesseduffield•36m ago•0 comments

Medieval Ideas About Food

https://lithub.com/fish-bad-sugar-good-and-other-medieval-ideas-about-food/
1•simplegeek•37m ago•0 comments

Beltrunner: Game Design Postmortem

https://blog.gingerbeardman.com/2026/07/30/beltrunner-game-design-postmortem/
1•tobr•38m ago•0 comments

UK's only all-female chess team promoted – then told they must recruit a man

https://www.theguardian.com/sport/2026/jul/31/uk-female-chess-team-league-rule-men-join-sport
2•beardyw•38m ago•0 comments

Hi, Jinks – a new way to make games

https://jinks.gg/
1•tobr•39m ago•0 comments

The Software Engineering Practice Atlas

https://eng-atlas.dev
2•duyetdev•41m ago•0 comments

From Backtests to Live Crypto Trading Without Rewriting Strategy Code

https://medium.com/@DolphinDB_Inc/from-backtest-to-production-implementing-live-cryptocurrency-tr...
3•Polly_Liu•45m ago•0 comments

Show HN: I stopped babysitting my AI agents by pushing them to Telegram

https://blackflare.dev/
2•TrungTin•48m ago•0 comments

Samsung's chip workers are jumping ship to rival SK Hynix

https://www.technologyreview.com/2026/07/28/1140853/samsung-chip-workers-exodus-sk-hynix/
1•joozio•51m ago•0 comments

Top IPTV providers with free trial: what to evaluate in 2026

https://iptvproviders.online/
1•aramirez454•53m ago•0 comments

Turning screen recordings into structured incident and bug reports

https://tentomushi.to
1•pperner•55m ago•3 comments

Use Twenty Questions Game to Benchmark LLMs

https://mindalyze-com.github.io/deep-20-bench/
1•p-heusser•57m ago•1 comments

Made in the USSR: 6 video games Soviets went crazy over (2020)

https://www.rbth.com/lifestyle/332384-video-games-soviet-russian-tetris
2•downbad_•1h ago•0 comments

What I've Learned in 45 Years in the Software Industry (2021)

https://www.bti360.com/what-ive-learned-in-45-years-in-the-software-industry/
2•downbad_•1h ago•0 comments

Apple's genius play – MacBook Neo

https://monkeylike.substack.com/p/apple-marketing-strategy-genius
1•TIJ•1h ago•0 comments

C64 Demo Effects Explained: Rodents in the Attic [video]

https://www.youtube.com/watch?v=uZ1atMUOUMU
1•robin_reala•1h ago•0 comments