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.

Amazon faces FAA probe after delivery drone strikes fiber cable and garage

https://www.cnbc.com/2026/11/23/amazon-drone-crash-michigan-faa-investigation.html
2•ilamont•1m ago•0 comments

Show HN: Yolt – Your Personal TV

https://github.com/joonfjp/yoltapp
1•joonfjp•2m ago•0 comments

Employees at OpenAI and Anthropic are panicking

https://garymarcus.substack.com/p/breaking-employees-at-openai-and
1•only_in_america•3m ago•0 comments

Show HN: I've become the dumb one, so I made a shortcut to ask Claude

https://github.com/EdonZo/sidemoon
1•edonzo•4m ago•0 comments

Show HN: Fit large JSON tool results into an LLM's context without losing data

https://github.com/AryabhattaLabs/agent-tool-result-reducer
1•ajeetsk•4m ago•0 comments

Tidal Bans AI-Generated Music

https://variety.com/2026/music/news/tidal-bans-ai-generated-music-1236956924/
2•theanonymousone•4m ago•0 comments

Show HN: PII Guard – local Chrome extension that redacts PII before AI chats

https://github.com/almma-ai/pii-guard
1•lwall_mba•5m ago•0 comments

Building a WhatsApp takes one prompt. Changing one feature doesn't

https://newsletter.mastermentee.com/p/building-a-whatsapp-takes-one-prompt
1•theanonymousone•5m ago•0 comments

Show HN: Mason – a lightweight Postgres read-replica, built on columnar storage

https://masondata.ai/
1•tagspace•5m ago•0 comments

Mayo Clinic to give appointment workers 5 paid minutes a day to boot computers

https://www.cbsnews.com/minnesota/news/mayo-clinic-back-wages-settlement-minnesota-attorney-gener...
2•theanonymousone•6m ago•0 comments

Guidelines for AI-Assisted Contributions to the Wimse WG

https://mailarchive.ietf.org/arch/msg/wimse/dN51wJq1zrDjrnew-6nFdwcG05Y/
1•mooreds•6m ago•0 comments

Dafuq Is a Deterministic VM?

https://fzakaria.com/2026/10/24/dafuq-is-a-deterministic-vm
1•skadamat•6m ago•0 comments

Moscow accuses Estonia of hostile actions on 'verge of triggering open war'

https://www.reuters.com/world/moscow-accuses-estonia-hostile-actions-verge-triggering-open-war-20...
4•Bondi_Blue•7m ago•0 comments

Britain's most remote mainland pub (2022)

https://www.bbc.com/travel/article/20220802-britains-most-remote-mainland-pub
1•mooreds•8m ago•0 comments

Design Principles Behind Smalltalk (1981)

https://www.cs.virginia.edu/~evans/cs655/readings/smalltalk.html
1•Tomte•8m ago•0 comments

Show HN: Terminal Tasks Open – 30 hard tasks, best model passes 67%

https://github.com/vettoai/terminal-tasks-open
2•dvaplima•8m ago•0 comments

Ex-Nvidia partner Megaspeed hit with U.S. Commerce Department export ban

https://www.upi.com/Top_News/US/2026/11/24/NVIDIA-partner-Megaspeed/1701795520063/
3•nephihaha•9m ago•0 comments

Show HN: LLM API cost and carbon calculator for your own token mix

https://somaai.earth/ai-footprint/llm-api-cost-calculator
1•guillermollopis•9m ago•0 comments

Is the Counter Ransomware Initiative Keeping Up with Ransomware?

https://www.lawfaremedia.org/article/is-the-counter-ransomware-initiative-keeping-up-with-ransomware
1•hn_acker•9m ago•0 comments

Waarm64 emulates the hardware in the browser, not an operating system

https://waarm64.com/
1•franze•9m ago•0 comments

Fraud Arena, a benchmark for AI on financial fraud

https://www.fraudarena.com/
1•ayanb9440•9m ago•0 comments

Loss of the Third Place

https://mattducharme.dev/posts/loss-of-the-third-place/
2•mattducharme•11m ago•0 comments

Show HN: VibeVigil – scan AI-built apps for leaked keys and open tables

https://vibevigil.com/
1•vibevigil•13m ago•0 comments

3% of "critical" software security bugs ever discovered found in the last month

https://twitter.com/NickADobos/status/2113430301183823901
1•Schlagbohrer•14m ago•0 comments

Session: Privacy Beyond End-to-End Encryption

https://alzze.xyz/posts/session-private-comunications/
1•alzzeat•14m ago•0 comments

Soviet Industrial Design

https://russiandesignmuseum.ru/objects/
3•oyster143•14m ago•0 comments

Millions of bitcoin are probably lost for good. Almost none can be proved gone

https://blog.everstrike.io/lost-bitcoin/
1•gertnygaard•16m ago•0 comments

I Asked 100 Agents to Hack Me

https://blog.sshh.io/p/i-asked-100-agents-to-hack-me
1•fagnerbrack•16m ago•0 comments

Using Telepathy to Play GTA VI – Neuralink [video]

https://www.youtube.com/watch?v=05EgtB4L8x4
1•falcor84•17m ago•0 comments

The Problem of Exchange

https://www.convex.io/thoughts/the-problem-of-exchange/
1•jflatow•17m ago•0 comments