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.

AI Holdouts in Tech Face 3 Times Higher Layoff Odds, Gallup Finds

https://finance.yahoo.com/technology/ai/articles/ai-holdouts-tech-face-3-095310222.html
1•littlexsparkee•5m ago•0 comments

Teen summer employment is headed for its worst year since 1948

https://fortune.com/2026/06/18/teen-summer-jobs-record-low-2026/
2•cheschire•5m ago•1 comments

Did Massachusetts Legalize Haggis?

https://www.cbsnews.com/boston/news/haggis-massachusetts-legal-scotland/
2•speckx•18m ago•0 comments

Writing Postcards with a 3D Printer

https://severinbucher.com/posts/writing-postcards-with-a-3d-printer/
2•typesafeJ•18m ago•0 comments

The Job Market Is Thawing

https://www.theatlantic.com/newsletters/2026/06/job-market-hiring-may/687640/
3•littlexsparkee•19m ago•1 comments

How Meter Pricing Is Testing the Economics of AI

https://www.bloomberg.com/news/articles/2026-06-18/ai-costs-what-shift-from-flat-rate-to-token-pr...
2•1vuio0pswjnm7•19m ago•0 comments

Mae vs. MSE: more than just the mean vs. median debate

https://idlemachines.co.uk/essays/mae-vs-mse
1•smaddrellmander•20m ago•0 comments

Show HN: Flashback – an agent skill that references 127 years of design trends

https://toby.github.io/flashback/
3•tobypadilla•25m ago•0 comments

Show HN: Drydock – VM Sandboxes for macOS Autonomous Coding Agents

https://github.com/sricola/drydock
1•sricola•26m ago•0 comments

Standout Startups from YC's Demo Day, According to VCs

https://techcrunch.com/2026/06/18/the-11-standout-startups-from-ycs-demo-day-according-to-vcs/
2•simonpure•32m ago•0 comments

College students are swapping coding for healthcare: Goldman Sachs

https://finance.yahoo.com/economy/article/college-students-are-swapping-coding-for-healthcare-gol...
2•gbourne1•33m ago•1 comments

GitLab 19.1

https://docs.gitlab.com/releases/19/gitlab-19-1-released/
3•ilreb•33m ago•0 comments

Waymo Recalling 3,800+ Robotaxis over Risk of Entering Construction Zones

https://www.wsj.com/business/autos/waymo-recalling-more-than-3-800-robotaxis-over-risk-of-enterin...
3•1vuio0pswjnm7•34m ago•0 comments

HN Returning "Sorry."

2•christopher8827•34m ago•1 comments

Can LLMs change the hiring economics of legacy engineers?

https://exhaustedmind.substack.com/p/ask-hn-can-llms-change-the-hiring
1•Psychoterapist•36m ago•0 comments

Show HN: AA-Briefcase: a frontier knowledge work evaluation

https://artificialanalysis.ai/articles/aa-briefcase
10•declanjackson•41m ago•2 comments

The effect of worked examples on learning solution steps and knowledge transfer

https://www.tandfonline.com/doi/full/10.1080/01443410.2023.2273762
1•indigodaddy•45m ago•0 comments

Office workers of the world unite: it's time to revive the three-martini lunch

https://www.theguardian.com/commentisfree/2026/jun/18/three-martini-lunch
3•andsoitis•48m ago•1 comments

Haker Pra Free Fare

1•thaillan•49m ago•1 comments

Elon Musk's SpaceX plots $20B bond deal after record IPO

https://www.ft.com/content/8b73b4ce-3855-4b89-9110-3d892567f28a
2•JumpCrisscross•53m ago•0 comments

Ask HN: Any VPS / VPN with Dedicated IP Address in Cayman Islands?

1•JumpinJack_Cash•53m ago•0 comments

Update on Ocean Observatories Initiative

https://www.nsf.gov/news/update-ocean-observatories-initiative
34•andsoitis•57m ago•5 comments

Zhao's $2B Bet: Why Asia Needs Another Quant Shop

https://freemalta.com/news/digest/ambition/zhaos-2-billion-bet-why-asia-needs-another-quant-s
1•ilhaniremyuce•59m ago•0 comments

Data Science Weekly – Issue 656

https://datascienceweekly.substack.com/p/data-science-weekly-issue-656
1•sebg•59m ago•0 comments

Uniba Embodied Virtuality

https://uniba.jp/
1•bobbiechen•1h ago•0 comments

Chile turned to China for an undersea cable. The U.S. said no

https://restofworld.org/2026/chile-china-america-google-cable/
2•i7l•1h ago•0 comments

How the Peter Thiel-Linked Dialog Club Ranks Its Members

https://www.wired.com/story/how-peter-thiels-private-dialog-club-secretly-ranks-its-members/
1•mukmuk•1h ago•0 comments

NASA brought the monstrous F-1 "moon rocket" engine back to life (2013)

https://arstechnica.com/science/2013/04/how-nasa-brought-the-monstrous-f-1-moon-rocket-back-to-life/
3•Eridanus2•1h ago•0 comments

Selling My House with a Chatbot

https://www.nytimes.com/2026/05/28/technology/sell-house-with-ai-no-realtor.html
1•lispybanana•1h ago•0 comments

Newgrange

https://en.wikipedia.org/wiki/Newgrange
2•Amorymeltzer•1h ago•0 comments