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.

My 3 SaaS are evaporating. RIP indie hacking (2018-2026)

https://twitter.com/gherget/status/2082784434726592780
1•gaborme•3m ago•0 comments

Excessive time spent online linked to stress and worse mood – study

https://www.theguardian.com/technology/2026/jul/29/excessive-time-spent-online-linked-to-stress-a...
2•giuliomagnifico•5m ago•0 comments

Cleaning Out Inboxes: TA488 Comes for Outlook with Another Half-Click Exploit

https://www.proofpoint.com/us/blog/threat-insight/cleaning-out-inboxes-ta488-comes-outlook-anothe...
1•romaniitedomum•5m ago•0 comments

Our Research Team Developed a More Efficient Audio Embedding Model

https://www.edgeimpulse.com/blog/how-our-research-team-developed-a-more-efficient-audio-embedding...
1•dansitu•5m ago•0 comments

Show HN: Claude Skill for ASD-STE100 – Simplified English

https://github.com/blagoySimandov/asd-ste100-writer-skill
2•blagoysimandoff•9m ago•0 comments

Copy Error in Apple's Developer Program Signup Screen

https://drive.google.com/file/d/1Pn5MNH-vaIKVOqZyueLQq_5a7psra9BL/view?usp=sharing
1•rcshubhadeep•10m ago•1 comments

Software Foundations Series

https://softwarefoundations.cis.upenn.edu/
1•iamanatom•11m ago•0 comments

Uefa to discuss boycotting World Cup in emergency meeting after FIFA bombshell

https://www.independent.co.uk/sport/football/fifa-world-cup-uefa-boycott-meeting-infantino-news-b...
1•vrganj•12m ago•0 comments

A fundamental flaw leaves LLMs strikingly vulnerable to attack

https://www.technologyreview.com/2026/07/30/1140927/a-fundamental-flaw-leaves-llms-vulnerable-to-...
2•joozio•13m ago•0 comments

OpenAI's Hacking Debacle Was a Human Mistake

https://www.wired.com/story/openais-hacking-debacle-was-a-human-mistake/
1•smurda•14m ago•0 comments

Need a Personal Injury Lawyer in Glasgow?

https://www.khanlaw.co.uk/
1•listingskdm•14m ago•1 comments

Show HN: A minimalist proxy for your local LLM cluster (~1100 lines)

https://github.com/robolamp/smol-llm-proxy
1•snowy_robolamp•17m ago•0 comments

The Chinese robot army transforming the UK's retail industry

https://www.bbc.co.uk/news/articles/c0jl8v23qwgo
1•edward•18m ago•0 comments

Parseword

https://www.parseword.com
1•bookofjoe•18m ago•0 comments

Typeless is stripping away my thought process

https://en.astrian.lol/think-dont-speak/
1•Astrian•19m ago•0 comments

Code Page 437

https://en.wikipedia.org/wiki/Code_page_437
1•tosh•19m ago•0 comments

When I failed the Microsoft interview

https://ochagavia.nl/blog/that-time-when-i-failed-the-microsoft-interview/
1•birdculture•21m ago•0 comments

"The Proximal Origin of SARS-CoV-2"

https://www.whitehouse.gov/lab-leak-true-origins-of-covid-19/
2•just_some_user•22m ago•1 comments

Mythos attack on 3rd-round PQC algorithm candidate puts it out of commission

https://arstechnica.com/security/2026/07/mythos-uncovers-crypto-weaknesses-that-went-unknown-for-...
3•throw0101a•24m ago•0 comments

k/simple

https://github.com/kparc/ksimple
1•tosh•27m ago•0 comments

BeHive – Open-source research engine that outputs structured claims, not essays

https://github.com/qa10devteam/behive
1•qadevteam•29m ago•0 comments

Origami research takes top prize at 2026 Regeneron ISEF competition

https://www.snexplores.org/article/2026-regeneron-isef-winners-origami
1•viscousviolin•30m ago•1 comments

Created Mono8 (PICO-8 style game engine built on MonoGame, .NET 8)

https://mono8games.itch.io/mono8
1•rurhdhdije•30m ago•1 comments

Coinbase moved to open models. Cut AI spend in half while increasing token usage

https://twitter.com/brian_armstrong/status/2070670644577280109
2•smurda•30m ago•0 comments

A Most Comfortable Dead End

https://monokai.com/articles/a-most-comfortable-dead-end/
1•monokai_nl•31m ago•0 comments

Frhog

https://www.frhog.com/?ribbit
1•krm01•32m ago•0 comments

In AI arms race, Swiss neutrality is double-edged sword

https://www.swissinfo.ch/eng/foreign-affairs/swiss-neutrality-is-double-edged-sword-in-ai-arms-ra...
1•TMWNN•34m ago•0 comments

Gpiozero Flow

https://bennuttall.com/blog/2026/07/gpiozero-flow/
19•benn_88•41m ago•3 comments

Atomarine: Nuclear Data Centers at Sea

https://atomarine.co/
25•ndr•42m ago•23 comments

GPT-5.6 SOL pushing 25h towards a goal

https://testflight.apple.com/join/vWrJPqk5
2•dreambiggg•45m ago•3 comments