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.

Spelunkr TV for Android: Channel-surf through a universe of retro television

https://spelunkr.tv/app
1•kls0e•3m ago•0 comments

Texas Supreme Court says state law allows AI-generated deposition transcripts

https://www.reuters.com/legal/litigation/texas-supreme-court-says-state-law-allows-ai-generated-d...
1•onemoresoop•4m ago•0 comments

GameStop's Game Informer Auction Hits eBay's $100M Limit

https://www.nytimes.com/2026/12/04/us/gamestop-ebay-game-informer-auction-vault.html
1•reaperducer•5m ago•0 comments

Show HN: Singapore ACRA (2.13M entities) and GST API, MCP server, CSV checker

https://oxaide.com/developers
1•leewenjie•18m ago•0 comments

GameStop is selling Game Informer's vault and its former editor is angry

https://www.videogameschronicle.com/news/gamestop-is-selling-game-informers-entire-vault-of-nearl...
3•rdmuser•18m ago•1 comments

Show HN: KiwiBasil – MangoMint Data Export

https://chromewebstore.google.com/detail/kiwibasil-mangomint-data/kikibklpcknkalleefmpbonbiibbghfa
1•rrr_oh_man•22m ago•0 comments

No One Should Trust AI to Write Their Code

https://www.adacore.com/blog/no-one-should-trust-ai-to-write-their-code
3•RossBencina•23m ago•0 comments

Accelerated Bachelor's to PhD (AccelPhD)

https://www.nsf.gov/funding/opportunities/accelphd-accelerated-bachelors-phd
1•United857•23m ago•0 comments

Chamberlain is giving itself a permanent license to your data

https://www.theverge.com/tech/1050757/chamberlain-garage-door-smart-home-camera-tos-terms-service...
3•divbzero•29m ago•0 comments

John Bolton Is Sentenced to 6 Months in Prison for Mishandling Classified Info

https://www.nytimes.com/2026/12/04/us/politics/bolton-prison-classified-information.html
5•consumer451•31m ago•8 comments

Cannabis smoking probably causes cancer, WHO research agency says

https://www.reuters.com/business/healthcare-pharmaceuticals/who-research-agency-says-cannabis-smo...
3•geox•32m ago•0 comments

eBay bans sale of AI toys

https://www.nbcnews.com/tech/tech-news/ebay-bans-sale-ai-toys-nbc-news-investigation-rcna612886
2•cdrnsf•32m ago•0 comments

AI leaders clash over surrendering human free will

https://www.axios.com/2026/11/25/anthropic-ai-human-control-debate-free-will
4•mgh2•32m ago•1 comments

The human centipede that is AI Twitter

https://www.lesswrong.com/posts/Ctia6zyXF69N3tzhv/the-vast-human-centipede-that-is-ai-twitter
2•koreindian•34m ago•0 comments

G.Skill's Site Appears to Have Been Hijacked to Serve Malware

https://www.pcmag.com/news/gskills-site-appears-to-have-been-hijacked-to-serve-malware
4•Kuraj•34m ago•0 comments

Rethinking the source of truth for programming in the intelligence age

https://csailmit.substack.com/p/rethinking-the-source-of-truth-for
1•matt_d•39m ago•0 comments

Show HN: Hypothesis-Driven Autoresearch for DL Research

https://github.com/JonnaMat/magic-machine
1•JonnaMat•40m ago•0 comments

Public Data Worth Building With

https://www.wesleygrubbs.com/civic-data/
1•abetusk•46m ago•0 comments

Design, Not Content, Is the New Battleground for Technology Law

https://news.bloomberglaw.com/legal-exchange-insights-and-commentary/design-not-content-is-the-ne...
1•gwu78•49m ago•0 comments

Maybe Jensen Huang Needs a New Lawyer

https://www.theatlantic.com/national-security/2026/12/jensen-huang-security-clearance-nvidia/689684/
2•gwu78•52m ago•0 comments

Jensen Huang's congressional testimony on Nvidia, China and AI chip exports

https://www.scribd.com/document/1104073539/jensenhuangtranscript-pdf
1•mfiguiere•55m ago•0 comments

U.S. officials: The Moon is a national security priority

https://www.axios.com/2026/12/03/us-officials-cislunar-moon-national-security
1•extasetoi12•58m ago•1 comments

Show HN: Ferrow – a local-first Markdown vault with reversible AI agents

https://ferrow.ai/
1•ferrow•58m ago•0 comments

YouTube to exclude AI-generated music from royalties

https://blog.youtube/news-and-events/youtube-ai-music-artist-protections/
3•negura•59m ago•0 comments

Serving Custom Models

https://www.cerebellumlabs.ai/blog/serving-custom-models/
1•suhaaspk•1h ago•0 comments

Caddy: PQC, Disabling 256-bit ECC, Using P-384 Let's Encrypt Cert

https://www.triplebit.org/blog/pqc-2026-caddy/
2•reader9274•1h ago•0 comments

Kilo-builder – CLI-first embedded/RE toolkit for Kilo Code and OpenCode

https://github.com/HsucheChiang/kilo-builder
2•jeff19881022•1h ago•0 comments

ASCII Validation from 2.5 to 114 GB/s with SIMD

https://modulovalue.com/blog/vectorizing-ascii-decoding/
2•modulovalue•1h ago•0 comments

Easing Functions Cheat Sheet

https://easings.net/
1•gregsadetsky•1h ago•0 comments

Claude Cocaine: Prevent Automated Crime by Agents

https://ghollbeck.github.io/claude-coke-blog/
1•ghuntley•1h ago•0 comments