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.

DMR effect on drag reduction of a streamlined body

https://www.cambridge.org/core/journals/journal-of-fluid-mechanics/article/dmr-effect-on-drag-red...
1•deadbishop•29s ago•0 comments

CLI for self-hosted Invoice Ninja

https://github.com/DrDBanner/inmanage
1•ycomrsys•1m ago•1 comments

They're Made Out of Compute

https://magzimof.com/made-out-of-compute/
1•shaimagz•4m ago•0 comments

High-severity vulnerability in Linux caused by a single faulty character

https://arstechnica.com/security/2026/06/a-single-errant-character-in-the-linux-kernel-allows-att...
1•joozio•5m ago•0 comments

Is symbolic AI more relevant than ever?

https://www.heise.de/en/blog/Is-symbolic-AI-more-relevant-than-ever-11323023.html
2•goloroden•12m ago•0 comments

Can tech companies learn to love cheaper AI models?

https://techcrunch.com/2026/06/09/can-tech-companies-learn-to-love-cheaper-models/
2•parveshblogger•13m ago•0 comments

Tell HN: TIL Apple is rewriting core things in Swift

2•gigatexal•14m ago•0 comments

iOS 27 features we didn't see onstage

https://techcrunch.com/2026/06/09/ios-27-features-we-didnt-see-on-stage/
1•ameypandey•15m ago•0 comments

Turn any PDF or article into a podcast episode

https://manateavagner.com/news/podcasts-pdf-to-episode
1•manateavagner•15m ago•0 comments

Ofarwise – a local Windows app for interview prep and mock practice

https://www.ofarwise.com/
1•hallengray•15m ago•0 comments

BlenderHunt, an Indie Marketplace for Blender Creators

https://blenderhunt.com/
1•egretfx•17m ago•0 comments

Don't mop the floor. Fix the leaky faucet

https://blog.br11k.dev/2026-06-02-dont-mop-the-floor-fix-the-leaky-faucet
1•konovalov-nk•17m ago•1 comments

Show HN: Frhog

https://www.frhog.com/?hn
1•krm01•18m ago•0 comments

WSP WordPress MCP – Connect AI Coding Agents to WordPress

https://github.com/bilalnaseer/wsp-wordpress-mcp
1•ibrarmaikah•21m ago•0 comments

Why the Supreme Court Is Debating Which Founding Fathers Were Drunks

https://www.wsj.com/us-news/law/supreme-court-session-cases-originalism-birthright-citizenship-se...
1•JumpCrisscross•22m ago•0 comments

Pelican on a Bicycle: Claude Fable 5 vs. GPT-5.5 Pro vs. Gemini 3.1 Pro

https://www.promptfrenzy.com/showdown/svg-pelican
1•spobin•22m ago•0 comments

Choice: Nextcloud Office Powered by Collabora or Euro-Office

https://nextcloud.com/blog/nextcloud-hub26-spring/
1•teekert•22m ago•0 comments

Eight Myths on Software Engineering and GenAI

https://spawn-queue.acm.org/doi/10.1145/3807963
1•RyeCombinator•27m ago•0 comments

Emacs Appearances in Pop Culture

https://ianyepan.github.io/posts/emacs-in-pop-culture/
1•ggcr•32m ago•0 comments

Inferoa AI harness claimed 90% cache savings. We ran it and measured 97.8%

https://zozo123.github.io/inferoa-demo/
1•zozo123-IB•32m ago•0 comments

TvOS 27: Apple Music Gains Hi-Res Lossless Audio on Apple TV 4K

https://www.macrumors.com/2026/06/10/tvos-27-apple-music-hi-res-lossless-audio-apple-tv/
1•tosh•33m ago•0 comments

How the Other Half Counts: Planner Statistics in Oracle, Db2, MySQL, SQLite

https://thebuild.com/blog/how-the-other-half-counts/
1•pgedge_postgres•33m ago•0 comments

Show HN: Impress your boss with interactive Decision Tree Visualization

https://github.com/mljar/supertree
2•pplonski86•35m ago•0 comments

Stop Gmail from Blocking Your Domain Emails – SPF, DKIM and DMARC Setup

https://mysevenstars.com/articles/email-authentication-guide.html
2•mssblogs•35m ago•4 comments

How to build a cancer vaccine, and whether they will work this time

https://www.owlposting.com/p/how-to-build-a-cancer-vaccine-and
1•yorwba•36m ago•0 comments

NASA Marches Toward Artemis III Mission in 2027, Names Crew Members

https://www.nasa.gov/news-release/nasa-marches-toward-artemis-iii-mission-in-2027-names-crew-memb...
1•noworld•38m ago•0 comments

Beyond Protectionism: Why EU should put up trade barriers against Chinese goods

https://www.noahpinion.blog/p/why-europe-should-put-up-trade-barriers
2•throw0101a•39m ago•1 comments

Show HN: A tool to analyze and manage sosreports

https://sos-vault.com/login
1•jlrueda•42m ago•0 comments

Open System Firmware: Experiences deploying LinuxBoot, coreboot at Google (2021) [video]

https://www.youtube.com/watch?v=xsikf8JzQyU
2•peter_d_sherman•42m ago•1 comments

The Bitter Lesson

http://www.incompleteideas.net/IncIdeas/BitterLesson.html
1•Anon84•42m ago•0 comments