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.

The power (and weakness) of Narrative in Biotech

https://agapow.substack.com/p/the-power-and-weakness-of-narrative
1•nnmg•34s ago•0 comments

DALT: Depreciation-Assisted Land Value Tax

https://progressandpoverty.substack.com/p/dalt-depreciation-assisted-land-value
1•surprisetalk•1m ago•0 comments

Noctule 3.0 Released

https://noctule.dev/posts/noctule-3.0
1•jansorg•1m ago•0 comments

Technological News

1•wmurciar•2m ago•0 comments

Show HN: Tachyon – MCP server framework for Java and Kotlin

https://github.com/kpavlov/tachyon
1•lumestro•2m ago•0 comments

It's time Amazon played by the same rules as everyone else [video]

https://www.youtube.com/watch?v=91DoiansHqk
2•whosgotch•2m ago•0 comments

Easy Sandboxing on Linux with Bubblewrap

https://bxt.rs/blog/easy-sandboxing-on-linux-with-bubblewrap/
1•birdculture•3m ago•0 comments

AMD Reengineers Its Ryzen 7 5800X3D Gaming Processor

https://www.electronicdesign.com/technologies/embedded/digital-ics/processors/microprocessors/art...
1•vednig•4m ago•0 comments

Hatchbox MCP – control your Rails hosting from Claude

https://github.com/hatchboxio/hatchbox-mcp
1•cjilbert504•4m ago•0 comments

Black Box Warfare: Human Judgment and Military Decision-Making in the Age of AI

https://journals.sagepub.com/doi/10.1177/00220027261463443
1•cdrnsf•4m ago•0 comments

Seedless Blackberries and Cherries That Grow on Bushes

https://www.wired.com/story/seedless-blackberries-cherry-bushes-future-of-food/
2•WithinReason•6m ago•0 comments

Fed-Poster: The First and Largest 100 Platform Publishing Hub

https://github.com/FED-OS/Fed-Poster
1•MyBoyGreen•6m ago•0 comments

Claude Sonnet 5 introductory pricing becomes permanent

https://twitter.com/claudeai/status/2086891169217122586
1•tosh•6m ago•0 comments

Building a Generic Context-Aware Scoring Engine

https://github.com/Kevinci/ts-profanity-filter
1•kevincii•6m ago•1 comments

Show HN: Browser Agent – cost efficient browser automation

https://github.com/visnia-ai/browser-agent
3•pierreb-aiva•9m ago•0 comments

Looking for marketing-focused co-founder for our startup

https://www.rakupay.io
1•creativepaul•10m ago•0 comments

Show HN: Porcupine, a terminal AI agent built for safe autonomy

https://github.com/Abd0r/porcupineai
1•SyedAbdurR2hman•11m ago•0 comments

Show HN: Muuted – I built a feed that knows when to shut up

https://muuted.com/
1•Caldwellone•11m ago•1 comments

Show HN: Amber – An open-source C99 Q/K array engine for quant finance

https://github.com/BonucciAndrea/amber
2•KonaEnthusiast•12m ago•0 comments

Show HN: Claude Fleet – Session Manager Widget Always on Top for CC (Windows)

https://github.com/Shalom-Borohov/claude-fleet
1•bshalom•13m ago•0 comments

What Is an Agent Harness?

https://rubriclabs.com/blog/what-is-an-agent-harness
1•markgavalda•15m ago•0 comments

Humans' sense of smell is still evolving

https://www.scientificamerican.com/article/humans-sense-of-smell-is-still-evolving/
3•beardyw•16m ago•1 comments

Show HN: OpenCorp – paste a URL, AI finds competing products and Reddit threads

https://opencorp.live/
2•pokemongo11•16m ago•0 comments

Tech Sucks? Really?

https://www.gordonmclean.co.uk/2026/08/11/tech-sucks-really/
2•snowgoon•17m ago•1 comments

I backtested my own stock rankings. They lost to the index

https://holderdashboard.com/learn/backtest-that-lost-to-the-index
1•caiocmpaes•18m ago•0 comments

AI agent hacks gym to get its owner spot in pilates class

https://www.bbc.com/news/articles/cn0nww2qlp7o
3•vinni2•19m ago•1 comments

Subproblems, Strings, and Search Tricks

https://stochastic.blog/subproblems-strings-and-search-tricks/
1•Anon84•20m ago•0 comments

England set to be one of the first countries to eliminate hepatitis C

https://www.bbc.com/news/articles/c75gk620r22o
2•stevekemp•21m ago•0 comments

SYNX – a config format that declares its own types, defaults and env

https://github.com/APERTURESyndicate/synx-format
1•kaiserbergg•22m ago•0 comments

Dancing with friends and enemies: boids' swarm intelligence

https://community.wolfram.com/groups/-/m/t/122095
1•surprisetalk•23m ago•0 comments