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

Ask HN: Does debating between using AI and just writing code slow you down?

1•noduerme•33s ago•0 comments

Free Fares for Public Transit?

https://www.youtube.com/watch?v=UAovrBJPItA
1•nhhvhy•53s ago•0 comments

PipBack

https://pipback.com/
1•derekpb•1m ago•0 comments

Ensu – Ente's Local LLM App

https://ente.io/blog/ensu/
1•riezebos•2m ago•0 comments

Show HN: Automating e-commerce video ads from one image (technical breakdown)

1•promomotions•3m ago•1 comments

Reviewing Large Changes with Jujutsu

https://bengesoff.leaflet.pub/3mg2hkyj7l22k
1•bengesoff•4m ago•0 comments

Rearview Webcam Webpage

https://www.handgun.es/rearview/
1•mariafuriosa•4m ago•0 comments

loopmaster: Zero to Hero – Learn to Code Music

https://loopmaster.xyz/tutorials/zero-to-hero
1•stagas•5m ago•0 comments

Agentic Engineering: Building Without Writing

https://dehora.net/journal/2026/3/agentic-engineering-building-without-writing
1•hrpnk•5m ago•0 comments

Python, C, Assembly – 2'500x Faster Cosine Similarity (2023)

https://ashvardanian.com/posts/python-c-assembly-comparison/
1•tosh•7m ago•0 comments

Privacy-preserving age and identity verification via anonymous credentials

https://blog.cryptographyengineering.com/2026/03/02/anonymous-credentials-an-illustrated-primer/
1•FrasiertheLion•8m ago•0 comments

Open Source Models Score Low on ARC-AGI-2 Reasoning Benchmark

https://xcancel.com/i/status/2028563647212265565
1•ironyman•10m ago•0 comments

Show HN: Kanon 2 Enricher – the first hierarchical graphitization model

https://isaacus.com/blog/kanon-2-enricher
1•ubutler•11m ago•0 comments

StartupVCmatch: Upload a pitch deck, get best-fit VCs ranked

https://startupvcmatch.com
1•filipeburmester•12m ago•1 comments

Separating Business Definition from Execution in Infrastructure

https://lynq.sh/blog/business-logic-in-infrastructure
1•selenehyun•14m ago•0 comments

Paperdraw.dev

https://paperdraw.dev/
1•vhatkarpratap•15m ago•0 comments

Phishing Email

1•nicp•21m ago•0 comments

Productivity Is the New Data Breach

https://www.youtube.com/watch?v=e1ZM3dSfB70
1•frag•25m ago•0 comments

RalphMAD – Autonomous SDLC Workflows for Claude Code (BMAD and Ralph Loop)

2•hieutrtr•25m ago•0 comments

LibreOffice Online dragged out of the attic

https://www.theregister.com/2026/03/02/libreoffice_online_deatticized/
3•rbanffy•25m ago•0 comments

Lollygagging

https://www.merriam-webster.com/dictionary/lollygag
1•bramjoosten•28m ago•0 comments

Show HN: I Built a TypeScript ORM for DynamoDB

https://www.zeroinbox.ai/dynamodb
1•shayan-arman•28m ago•0 comments

Zed Overhauled Their ToS and Privacy Policy

https://zed.dev/blog/terms-update
1•thomascountz•28m ago•1 comments

Show HN: Spec-shaker – "Chaos engineering" for tests via semantic mutation

https://github.com/lydiazbaziny/spec-shaker
1•lydiazbaziny•30m ago•0 comments

AWS outage due to drone attacks in UAE

https://www.bbc.com/news/articles/cgk28nj0lrjo
1•stellastah•31m ago•0 comments

Greeks (Finance)

https://en.wikipedia.org/wiki/Greeks_(finance)
1•tosh•31m ago•0 comments

Show HN: Cmdop – Check your terminal from your phone, through NAT, free forever

https://github.com/commandoperator/cmdop-sdk
1•markolofsen•33m ago•0 comments

Show HN: TrueMatch – AI agents match you on observed behavior, not profiles

https://github.com/goeldivyam/truematch
2•godivyam•34m ago•0 comments

Living Human Brain Cells Play Doom on a Cortical Labs CL1 [video]

https://www.youtube.com/watch?v=yRV8fSw6HaE
2•OccamsMirror•38m ago•0 comments

Show HN: Shipcheck – Pre-launch audit tool for SaaS founders

https://www.shipcheck.pro/
1•fiynraj•40m ago•2 comments