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.

Crossync – a super fast Rust concurrency library

https://github.com/sh1zen/crossync
1•shi1zen•1m ago•0 comments

I just wanted a cheap film camera, so I stitched 28 web scrapers together

https://frankensurf.dev/blog/i-just-wanted-a-cheap-film-camera/
1•yaoke259•1m ago•0 comments

SonicBoom – llama.cpp's own kernels, 14% faster decode via a graph compiler

https://github.com/hardenedlinux/sonicboom
1•nalaginrut•3m ago•0 comments

Buoyancy

https://blog.rajivayyangar.com/buoyancy/
1•tosh•7m ago•0 comments

GitLab Released critical patch for CVSS 10.0 CVE

https://docs.gitlab.com/releases/patches/patch-release-gitlab-19-4-2-released/
1•redpink•8m ago•0 comments

Hackers heat French supermarket fridges, sparking fires and spoiling food

https://www.cnn.com/2026/10/12/europe/france-supermarket-cyberattack-fridges-intl
1•0in•8m ago•0 comments

Sherlock Search

https://sherlock-search.org
1•thefirstname322•8m ago•0 comments

Vulnerabilities in Danfoss Refrigeration Controllers

https://www.claroty.com/team82/research/freeze-the-controller-defrost-the-food-uncovering-vulnera...
1•neamar•8m ago•0 comments

Science Explorer – Ranking/ analyzing science across the world

https://scienceexplorer.org/
1•cppcrunch•9m ago•0 comments

Termux on Android

https://terfi.fyi/blog/termux-on-android
1•taran_narat•10m ago•0 comments

Figcraft: An open-source, clean-room reimplementation of Figma

https://github.com/storytold/figcraft
1•MrTrvp•10m ago•0 comments

Encore – a simpler way to build on AWS and GCP

https://encore.dev
1•dohguy•10m ago•0 comments

What 17,000 career stories taught me about quitting and succeeding at one's job

https://medium.com/@Alikeke/what-17-000-career-stories-taught-me-about-quitting-fake-work-succeed...
1•K-duc•12m ago•0 comments

Friendship Ended with Obsidian/LaTeX, Now Typst Is My Best Friend

https://ersei.net/en/blog/typst
1•birdculture•13m ago•0 comments

A Discovery Inside the Steam Deck's APU (2024)

https://boilingsteam.com/an-in-depth-look-at-the-steam-deck-apu/
1•ekianjo•17m ago•0 comments

How to quickly get prepared for your technical round

https://idlemachines.co.uk/essays/ml-interview-problems
1•smaddrellmander•18m ago•0 comments

Were Software Engineers blue-collar workers all along?

https://ptrbrynt.com/posts/were-we-blue-collar-workers-all-along
20•ilreb•18m ago•17 comments

One plan now covers Cursor, Grok, Grok Bot, and X

https://twitter.com/mattyp/status/2109784144649838754
1•tosh•19m ago•0 comments

Dashr – Dynamically Animated Skinned Heightfield Rendering

https://tomforsyth1000.github.io/DASHR/paper/DASHR_Paper.html
1•signa11•19m ago•0 comments

Who in the EU Parliament fights for your privacy and who for Big Tech

https://noyb.eu/en/ranking-who-eu-parliament-fights-your-privacy-and-who-big-tech
1•latexr•22m ago•0 comments

Show HN: Add rain to your macOS desktop or watch John Wick fight the mafia

https://github.com/gonzaroman/RainDesktop
1•gonzar79•23m ago•0 comments

Anthropic warns AI models could soon copy themselves across home devices

https://www.cnbc.com/2026/10/13/anthropic-ai-models-self-replication-smart-devices.html
1•cramer4next•26m ago•0 comments

The Illusion of the AI Renaissance Man

https://jackwsmth.com/blog/the-illusion-of-the-ai-renaissance/
1•jackwsmth•30m ago•0 comments

Update: Empty shelves at Albert Heijn, app still unreachable

https://nos.nl/artikel/2634764-lege-schappen-app-nog-onbereikbaar-dit-weten-we-over-de-problemen-...
1•MeteorMarc•30m ago•1 comments

ARM Never Made a Chip. Dolby Never Built a Speaker.

https://www.cringely.com/2026/06/17/arm-never-made-a-chip-dolby-never-built-a-speaker/
1•tosh•34m ago•0 comments

Mark Stephens known to everyone as Robert X. Cringley passed away last week

https://twitter.com/stevesi/status/2109528428265570793
2•tosh•35m ago•0 comments

Anthropic's Claude AI submitted false murder tip to Philadelphia police

https://arstechnica.com/tech-policy/2026/10/anthropics-claude-ai-submitted-false-murder-tip-to-ph...
1•sbulaev•36m ago•0 comments

About Statebuilder

https://statebuilder.com/about
2•colinprince•39m ago•0 comments

Building Design Buddy

https://aleksandartasevski.com/articles/building-design-buddy
2•mightyalex•39m ago•0 comments

How to Choose the Best Local LLM Basis MacBook RAM Size

https://medium.com/data-science-collective/best-local-llms-for-your-mac-in-october-2026-24gb-to-1...
2•aggrawalankit_•39m ago•0 comments