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.

MakerGuard – See what strangers can access in your Supabase app

https://midnightbuilds.fyi/makerguard/
1•swatikumari425•2m ago•0 comments

Tessera, an open 27B tuned Qwen coding model that thinks in compressed CJK

https://huggingface.co/ZelligeAI/Tessera-27B-B-CJK-RL
1•Zellige•2m ago•0 comments

Introduction to Compute Markets #1: The Primary Market

https://twitter.com/OrnnExchange/status/2118372699093295482
1•gmays•2m ago•0 comments

Live now: attacking P vs. NP using only AI, written out in real time

https://x.com/i/broadcasts/2OdXnjKkaKWmkV
1•sunbagger•3m ago•0 comments

The hardware bet is wrong. It is running from a war

https://twitter.com/withYougori/status/2118840199400587576
1•Yougori•5m ago•0 comments

Outbound SIP calling is now available to all organizations

https://developers.openai.com/api/docs/guides/voice-sip
1•arbayi•15m ago•0 comments

Running Doom Inside SQL Server

https://sqlartist.github.io/posts/running-doom-inside-sql-server/
1•sqlartist•15m ago•0 comments

Show HN: Handbrake – a free, private driving log, no trackers, no ads

https://apps.apple.com/us/app/handbrake-driving-log/id6822426461
1•hcabral•16m ago•0 comments

Show HN: Budget Friendly City Discovery

https://geesling.ca/
1•bmods•16m ago•1 comments

Evergreen by Carta: Multiplayer coding platform where teams+agents ship together

https://evergreen.carta.com/blog/introducing-evergreen
2•chrisnager•16m ago•0 comments

Turns with an LLM: coherence isn't the same as accuracy

https://zenodo.org/records/23686384
1•pinuslongaeva•16m ago•0 comments

CATL Sodium Battery Hits LFP Cost Parity in 2026: 15,000 Cycles, 30-Year Life

https://ievchina.com/energy-storage/catl-sodium-battery-cost-parity-lfp-2026-15000-cycles/
15•doener•18m ago•5 comments

Swapping LLMs in Under Two Seconds: A Sleep Mode for Llama.cpp

https://zaage.it/writing/llama-sleep/
1•phirdev•19m ago•0 comments

Show HN: I asked HN about AI agentic setups, here are 750 of the comments mapped

2•eggbrain•20m ago•0 comments

Computer-Use Agents Are Embodied Generalists

https://pranjal2041.github.io/cua-embodied/
1•matt_d•23m ago•0 comments

Show HN:Best Price Supermarket Offers in Denmark

https://nyneon.net/supermarket-offers-denmark/
1•Zinnn•23m ago•1 comments

Git for Global Law

https://lexifina.com/blog/git-for-global-law
1•alansaber•24m ago•0 comments

The Port That Does Not Exist

https://acid.vegas/blog/the-port-that-does-not-exist/
2•tomwas54•26m ago•0 comments

ChatGPT silently passes data between connectors and the bounty wants an ID card

https://community.openai.com/t/security-follow-up-tool-call-silently-routed-to-a-different-connec...
16•Aldipower•28m ago•3 comments

Drone warfare in space: Autonomous laser cubesat swarms could defend satellites

https://www.space.com/space-exploration/satellites/drone-warfare-in-space-swarms-of-autonomous-la...
2•gmays•29m ago•0 comments

Inkling 2 Small: 17A-594B trained in 68 hours on 12T tokens, beating Muse Spark

https://latent.space/p/ainews-inkling-2-small-17a-594b-trained-in-68-hours-on-12t-tokens-beating-...
1•adunk•31m ago•1 comments

Open Source Neuron Hunt on AI Research Collaboration Platform

https://app.station-house.net
1•stationhouse•32m ago•1 comments

Self-powered toothbrush makes electricity to kill cavity-causing bacteria

https://www.livescience.com/health/this-self-powered-toothbrush-makes-electricity-to-kill-cavity-...
2•gmays•33m ago•0 comments

The Future Of Instrastructure, As I see It

https://djoker.dev/posts/future-of-infra/
1•dj0k3r•33m ago•0 comments

Show HN: Holly Nokta

https://elestio.geta.team/web/holly-nokta/
1•js4ever•34m ago•0 comments

Coding agents report "verified " when the check never tested the thing

https://zenodo.org/records/23367555
2•Oscalemor•34m ago•1 comments

DeepFinance: Can AI diligence a $100M deal?

https://www.juliusresearch.ai/blog/deep-finance
4•jacksongrove•34m ago•2 comments

Screens of Death

https://en.wikipedia.org/wiki/System_crash_screen
1•bookofjoe•35m ago•0 comments

Importance of Harness, Context and Model co-design

https://www.wisdom.ai/blog/context-harness-co-design
2•sharva•36m ago•0 comments

Noise pollution changes biology or behavior in 80% of animal species studied

https://phys.org/news/2026-11-noise-pollution-biology-behavior-animal.html
3•PaulHoule•38m ago•0 comments