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.

Dark Age

https://artagnon.com/art/dark-age
2•artagnon•1m ago•0 comments

Built the first open source Python library – converting Word, Excel to PDF

https://github.com/mini-software/MiniPdf
2•shps951002•4m ago•0 comments

Phylo brings frontier AI to more scientists with open models on Fireworks

https://fireworks.ai/blog/phylo-brings-frontier-ai-to-more-scientists-with-open-models-on-fireworks
2•measurablefunc•4m ago•0 comments

Observations on LLMs for Privacy Work

https://desfontain.es/blog/llms-for-privacy.html
3•luu•9m ago•0 comments

VoltGrid AI: Mitigating GPU cluster dI/dt power surges in software

https://zenodo.org/records/22824778
3•samganyx•10m ago•0 comments

A Man Who Named AI: John McCarthy and the End of the Code–Data Divide

https://nirmalutwani.substack.com/p/week-06-john-mccarthy-the-man-who
2•nutwani91•12m ago•1 comments

U.S. House Passes Bill to Require Am Radio in New Cars

https://www.radioworld.com/news-and-business/headlines/u-s-house-passes-bill-to-require-am-radio-...
2•geox•12m ago•0 comments

Chrome extension to declutter my inbox – might also have cybersecurity upside(?)

https://chromewebstore.google.com/detail/secure-gmail-sender-verif/bmnljdicggpfpkcmjojhkpooddoifada
2•jadonianfactor•19m ago•1 comments

US judge signals rejection of part of TikTok privacy settlement

https://www.reuters.com/legal/government/us-judge-signals-rejection-part-tiktok-privacy-settlemen...
2•1vuio0pswjnm7•26m ago•0 comments

UTF-8000: Unlimited UTF-8

https://utf-8000.jb2170.com
2•vismit2000•28m ago•0 comments

Pi Connects Colliding Blocks to a Quantum Search Algorithm (2020)

https://www.quantamagazine.org/how-pi-connects-colliding-blocks-to-a-quantum-search-algorithm-202...
2•vismit2000•29m ago•0 comments

Telling a Computer to Do Things

https://will-keleher.com/posts/telling-your-computer-to-do-things/
2•vismit2000•31m ago•0 comments

Saudi Arabia quits China-led cross-border currency platform

https://www.ft.com/content/ac104987-f43d-4e7d-97b6-057d98f7e422
2•JumpCrisscross•31m ago•0 comments

Tracking Capabilities for Safer Agents

https://arxiv.org/abs/2603.00991
2•verdverm•33m ago•1 comments

IRA Glass on Creativity

https://www.jquiambao.com/ira-glass-on-creativity
2•marciob•34m ago•0 comments

How I Use Pkgsrc

https://www.wisellama.rocks/posts/2022-04-24-how-i-use-pkgsrc/
2•signa11•34m ago•0 comments

Rendifly Manager

https://github.com/rendiflypcmanager-web/Rendifly-Manager
2•rendifly•34m ago•1 comments

Understand any Bluesky account (Jev)

https://jev.0x0.boo/
2•0x0boo•38m ago•0 comments

Anthropic creates AI powered wetlab

https://www.reuters.com/world/anthropic-quietly-sets-up-biology-lab-it-ramps-ai-drug-program-2026...
5•theahura•45m ago•1 comments

Yahoo Finance and Polymarket End Prediction Market Partnership

https://finance.yahoo.com/media-advertising/articles/yahoo-finance-polymarket-end-prediction-1423...
2•thm•45m ago•0 comments

Infillion acquires location data company Foursquare

https://www.axios.com/2026/09/18/infillion-acquires-foursquare-location-data
3•thm•46m ago•0 comments

The quest for open PDKs (silicon foundry Process Development Kits) [video]

https://www.youtube.com/watch?v=-7indiyU9nU
2•sxzygz•46m ago•0 comments

PyTorch Implementation of MobileNet V4

https://github.com/d-li14/mobilenetv4.pytorch
2•teleforce•47m ago•0 comments

It took China 4 years to build a new canal [video]

https://www.youtube.com/watch?v=ydaxEAPrQ28
3•keytalker•51m ago•0 comments

BYD Slashes Price of Electric Car and Becomes Cheapest in Australia [video]

https://www.youtube.com/watch?v=IQrnGK5FZXI
17•thelastgallon•56m ago•5 comments

Testing 8 VLMs on a single 3090 GPU

https://www.reddit.com/r/LocalLLaMA/s/uSxsTw5Wno
3•thinkevolve•57m ago•0 comments

Google AI Studio fakes data deletion. VRP auto-banned me in 60s for reporting it

https://medium.com/@istokovicsgyorgy79/google-ai-studio-fakes-data-deletion-vrp-auto-banned-me-in...
3•Bitu79•1h ago•0 comments

Polymarket's Rush to Grow Left a Door Wide Open for Fraudsters

https://www.wsj.com/business/polymarkets-fraud-regulators-coplan-5f418ab0
13•fortran77•1h ago•2 comments

Step 5 Preview: Advancing the Pareto Frontier

https://www.stepfun.com/step-5-preview
18•nateb2022•1h ago•1 comments

Quantum Color Conjecture

https://www.avahbanerjee.com/blog/planar-quantum-coloring
3•banerjeeav•1h ago•0 comments