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•12mo 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•12mo 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•12mo 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.

The New Rule of Writing in the AI Age: Don't Be Too Good

https://aidanking.blog/the-new-rule-of-writing-in-the-ai-age-dont-be-too-good/
1•NiloCK•8s ago•0 comments

Microsoft Defender wrongly flags DigiCert certs as Trojan:Win32/Cerdigent.A dha

https://www.bleepingcomputer.com/news/security/microsoft-defender-wrongly-flags-digicert-certs-as...
1•BitPirate•1m ago•0 comments

Next-generation AI for visually occult pancreatic cancer detection

https://gut.bmj.com/content/early/2026/04/22/gutjnl-2025-337266
1•stefap2•2m ago•0 comments

Show HN: memory.fm – revisit your life through your music listening history

1•shsiddhant•2m ago•0 comments

Amazon opens up its logistics network to other businesses

https://www.reuters.com/business/retail-consumer/amazon-opens-up-its-logistics-network-other-busi...
1•0xedb•4m ago•0 comments

California braces for uncertainty as last tanker of Persian Gulf Oil arrives

https://www.latimes.com/environment/story/2026-05-03/californias-last-oil-shipment
1•OgsyedIE•5m ago•0 comments

Cybersecurity's 2026 Wild Ride

https://pressuretested.substack.com/p/cybersecuritys-2026-wild-ride
1•bgmd•8m ago•1 comments

Asolaria ASI Has Arrived

https://github.com/JesseBrown1980/asolaria-behcs-256
1•jessedaniel•10m ago•1 comments

Roblox Loses 12M Daily Users After Age ID Check Rollout

https://reclaimthenet.org/roblox-loses-12m-daily-users-after-age-id-check-rollout
1•bilsbie•13m ago•0 comments

Senate Advances Guard Act Targeting AI Chatbots and Minors – Let's Data Science

https://letsdatascience.com/news/senate-advances-guard-act-targeting-ai-chatbots-and-minors-4e69679f
1•bilsbie•13m ago•0 comments

'Everyone's a Line on a Spreadsheet:' Inside Oracle's Mass Layoffs

https://time.com/article/2026/04/30/oracle-layoffs-ai-tech-jobs/
1•akyuu•14m ago•0 comments

Computer Science Achievement and Writing Skills Predict Vibe Coding Proficiency

https://dl.acm.org/doi/10.1145/3772318.3791666
1•thomasweiser•16m ago•0 comments

Last Universal Common Ancestor

https://en.wikipedia.org/wiki/Last_universal_common_ancestor
1•thunderbong•16m ago•0 comments

Show HN: Curated, non-slop articles on agentic coding

https://offautopilot.substack.com/about
1•sidkh•18m ago•0 comments

Do AI summaries hurt critical thinking?

https://medium.com/blueprint-for-disaster/ai-summaries-are-a-threat-to-our-cognitive-sovereignty-...
1•xngbuilds•18m ago•0 comments

Oh My OpenAgent

https://ohmyopenagent.com
1•this_was_posted•19m ago•0 comments

How a $1k AWS Bill Made Me Redesign My ECS Architecture

https://jch254.com/blog/lush-aural-treats-aws-cost-redesign/
3•slyall•21m ago•0 comments

Why Almost Everyone Loses–Except a Few Sharks–On Prediction Markets

https://www.wsj.com/finance/investing/polymarket-kalshi-betting-profits-prediction-markets-eb23ac11
2•JumpCrisscross•23m ago•0 comments

R – The Regenerative Dollar

https://paste.to/?cc6dbee108425678#68fgTvqyEAz94wuUX4jkuewbvJBJDf2n5j8T3JqJwpsq
2•ahgaghsbk•23m ago•0 comments

Vaccines were associated with an increased risk of dementia

https://pubmed.ncbi.nlm.nih.gov/36542511/
4•bilsbie•23m ago•1 comments

MatPlotLibNet – server-rendered charting for .NET, built for a trading system

https://github.com/xkqg/MatPlotLibNet
2•RikkieG•25m ago•0 comments

Esoteric Topics in Computer Programming (2002)

http://web.archive.org/web/20020609152409/www.catseye.mb.ca/esoteric/index.html
2•downbad_•26m ago•1 comments

The Quest for Equivalent Exchange – Supporting Exchange in Thunderbird

https://brendan.abolivier.bzh/exchange-pt-1/
2•babolivier•28m ago•0 comments

QuickHeap: A Fast Priority Queue

https://curiouscoding.nl/posts/quickheap/
2•fanf2•30m ago•0 comments

Show HN: Let THINK – Pure ideas from AI, no syco flattery

https://letthink.co
2•adamgonda•31m ago•0 comments

Talking to 35 Strangers at the Gym

https://thienantran.com/talking-to-35-strangers-at-the-gym/
6•thitran•31m ago•0 comments

Ask HN: Where are SWE's being replaced?

3•lionkor•32m ago•0 comments

Rebuilding a TLS-like protocol from scratch, step by step

https://www.dmytrohuz.com/p/rebuilding-tls-from-scratch-my-complete
3•dmyhuz•33m ago•1 comments

Ask HN: What's your favorite HN post?

4•chistev•34m ago•1 comments

Model multipliers for annual plans staying on request-based billing

https://docs.github.com/en/copilot/reference/copilot-billing/model-multipliers-for-annual-plans
2•derkoe•34m ago•1 comments