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.

Show HN: Terror Space: 5-player browser survival game inspired

https://bill.nguyentonhoang.com/terror-space
1•hahabill•1m ago•0 comments

I'm building a playable 3D web experience every day this month

https://adamwebsite.com/codevember/
1•adamchernick•3m ago•0 comments

Agemu – 5 ms screenshots, 20 ms UI trees for mobile coding agents

https://github.com/piotr-graczyk-dev/agentic-emulator
1•piotrgraczykdev•4m ago•0 comments

NoisyTCP: Linux Kernel TCP Pre-Auth Remote Corruption

https://github.com/V4bel/NoisyTCP
2•xiaoyu2006•5m ago•0 comments

Elephant-Goldfish Model

https://egm.dev/
1•_tk_•6m ago•0 comments

Irrigator: Local AI agent orchestration with recovery and spending limits

https://irrigator.dev/
3•aid-ninja•7m ago•0 comments

Have tech jobs in Ireland gone from boom to bust?

https://www.rte.ie/brainstorm/2026/1116/1598942-ireland-tech-jobs-ai-issues-cybersecurity-markets/
2•austinallegro•8m ago•0 comments

State of Archiving – How to Digitize Everything [video]

https://www.youtube.com/watch?v=JiSFrhVznQM
2•truxs•13m ago•0 comments

State of Elixir 2026

https://elixir-hub.com/surveys/2026/take
1•karocuriosum•19m ago•1 comments

Boeing-Lockheed Vulcan rocket fails, 40 Amazon satellites lost

https://www.dw.com/en/rocket-from-boeing-lockheed-firm-fails-mid-flight-destroys-payload-of-amazo...
1•ryan_j_naughton•20m ago•0 comments

Jensen Huang discusses comeback as Nvidia CEO

https://www.theguardian.com/business/live/2026/nov/16/ai-sell-off-resumes-jensen-huang-discusses-...
1•justswim•20m ago•0 comments

Toggle Bolt

https://en.wikipedia.org/wiki/Toggle_bolt
1•tosh•21m ago•0 comments

Show HN: Dissecting a 69-byte 1x1 #000000 PNG (RFC 2083) + live witness wall

https://black-pixel-1x1.vercel.app/dossier.html#binary-dissector
1•KINGOFTHESCREEN•22m ago•0 comments

SASY: Agent Policies in Declarative Logic

https://sasy.ai/
1•Raed667•22m ago•0 comments

Reintroducing Spaces

https://dholms.leaflet.pub/3mu3p3ldwrc26
1•birdculture•23m ago•0 comments

I rebuilt NLM's retired drug interaction API

https://github.com/shubhamjoshipromail-svg/localddi
2•shubhamjoshipro•24m ago•0 comments

Anthropomorphic Software

https://aspiz.uk/wiki/AnthropomorphicSoftware
1•dverlaeckt80•27m ago•0 comments

Winudf – DVD / BluRay driver for DOS, Windows 1.x – 3x / 95 / 98 / ME

https://github.com/ages2001/WINUDF
1•Oxodao•29m ago•0 comments

How Should Armies Fight?

https://worksinprogress.co/issue/the-future-of-war/
1•ersinesen•31m ago•0 comments

Alibaba says new AI model cuts task costs by 60% and tightens cyber safeguards

https://www.scmp.com/tech/big-tech/article/3374540/alibaba-says-new-flagship-ai-model-cuts-task-c...
1•snikolaev•33m ago•0 comments

Squircles (Page on Linebender Wiki)

https://linebender.org/wiki/curves/squircle/
1•raphlinus•34m ago•0 comments

Slack's Migration to a Cellular Architecture

https://slack.engineering/slacks-migration-to-a-cellular-architecture/
2•DonAtimator•36m ago•0 comments

YouTuber Mkbhd on the Cybertruck's Discontinuation

https://www.businessinsider.com/mkbhd-cybertruck-cancellation-roadster-question-2026-11
1•01-_-•37m ago•0 comments

Aer Lingus Ad

https://www.youtube.com/watch?v=uo8JaDqEruU
1•tosh•38m ago•0 comments

Spurious Correlations

https://www.tylervigen.com/spurious-correlations
2•thunderbong•40m ago•0 comments

Microsoft Post-Incident Report Is Up for the Exchange Online Outage

https://www.reddit.com/r/sysadmin/comments/1xxiasy/microsoft_postincident_report_is_up_for_the/
2•umbra07•40m ago•1 comments

Keycloak vs. Authentik vs. Zitadel for Agents

https://techstackups.com/articles/keycloak-vs-authentik-vs-zitadel/
2•ritzaco•49m ago•0 comments

" and the proof is checked in Lean"

https://xenaproject.wordpress.com/2026/11/12/and-the-proof-is-checked-in-lean/
4•matt_d•51m ago•0 comments

I'm Glad That Literary Awards Are Going to AI

https://twitter.com/EneaszWrites/status/2122076407803363641
1•barry-cotter•53m ago•0 comments

Test/verification technique effectiveness with Astra

https://danluu.com/astra-testing/
2•luu•55m ago•0 comments