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.

Perhaps the most underappreciated engineer of the Industrial Revolution

https://twitter.com/andrewmccalip/status/2110977221347475675
1•delichon•53s ago•0 comments

Changing the Ratio

https://crackedegg.press/posts/changing-the-ratio/
1•CqtGLRGcukpy•2m ago•0 comments

Show HN: Cosplay as a tech lead, using gVisor to sandbox agents

https://github.com/SoftwareRenderer/MIKE
1•SftwareRenderer•2m ago•0 comments

Show HN: Env-tabs – Pin your projects in Claude Desktop's Code tab

https://github.com/ahmtsahin/claude-env-tabs
1•impala64•8m ago•0 comments

Citizen Science Groups Grapple with the Rise of A.I. Slop

https://www.nytimes.com/2026/10/16/science/citizen-science-ai-slop.html
1•lxm•8m ago•0 comments

Feel Like You're Overpaying for Hotels? Blame Expedia, a New Lawsuit Says

https://www.nytimes.com/2026/10/16/travel/expedia-lawsuit-hotel-prices.html
2•lxm•9m ago•1 comments

Control the Ideas, Not the Code

https://www.antirez.com/news/169
1•devtor•10m ago•0 comments

Dogs Seem to Agree with Humans That 'Bouba' Is Round and 'Kiki' Is Spiky

https://www.sciencealert.com/dogs-seem-to-agree-with-humans-that-bouba-is-round-and-kiki-is-spiky
1•gmays•14m ago•0 comments

What will AI do to our jobs and our wages? [video]

https://www.youtube.com/watch?v=kAkpzlR7io8
1•Wilsoniumite•22m ago•0 comments

Just Dashboard – Self Hosted. Deploy Apps / Databases. A Dashboardfor Everything

https://github.com/JustDashboard/Just-Dashboard
1•Wayy01•23m ago•0 comments

MariaDB Fork

https://mariadb.com/docs/server/reference/sql-statements/data-definition/alter/alter-server
1•lufxen•28m ago•1 comments

Bookfolio: Free Books for Learning and Joyful Reading

https://bookfolio.io/browse/free
1•zenull•28m ago•0 comments

Constructing Languages

https://frozenfractal.com/blog/2024/8/9/around-the-world-19-constructing-languages/
1•andsoitis•29m ago•0 comments

Zuckerberg's Meta Takes Down No Kings Instagram During Protest Day

https://meidasnews.com/news/zuckerbergs-meta-takes-down-no-kings-instagram-during-massive-protest...
80•DeepLogin•33m ago•18 comments

Major New Features in ES2027

https://front-end.tips/es2027-javascript-features/
3•khalidkhair•39m ago•0 comments

Russian Bot Activity Collapses by 84% After Strikes on Yandex Data Centers

https://cpd.gov.ua/en/report/analytical-report-when-bots-go-silent-what-the-strikes-on-yandex-dat...
5•DeepLogin•41m ago•0 comments

KrypticKode007 – Embodied Cybernetic Sentience Core Engine

https://github.com/KrypticKode007/kryptic-agent
1•KrypticKode007•43m ago•0 comments

What 500 MiniMax Code Tests Revealed About AI Saying "Done"

https://defuzex.ai/blog/what-500-minimax-code-tests-revealed-about-ai-saying-done
3•SongWang•52m ago•0 comments

Adventures in Real-Time MIDI

https://www.perl.com/article/adventures-in-real-time-midi/
1•oalders•57m ago•0 comments

Drunken Goddess Reflux Public Demo Canceled over AI Imitation Concerns

https://noisypixel.net/drunken-goddess-reflux-public-demo-canceled-ai-imitation-concerns/
1•mister_mort•1h ago•1 comments

Dudu, back up and restore your dev setup on macOS and Linux with one command

https://github.com/fontnelle/dudu
1•fontnelle•1h ago•0 comments

Phase Lock

https://phaselock.satpugnet.com/
1•WhyIsItAlwaysHN•1h ago•0 comments

Anthropic warns AI models could self-replicate across home devices

https://www.cnbc.com/2026/10/13/anthropic-ai-models-self-replication-smart-devices.html
2•gmays•1h ago•1 comments

New Kaney's Weird Files Is Out – September 2026

https://kaneysweirdfiles.substack.com/p/september-2026-oddly-bahving-ai-evil
1•experiencertim•1h ago•0 comments

Lazyagents – Lazygit for AI coding agents

https://github.com/rogeriojunior31/lazyagents
1•rogeriojunior31•1h ago•0 comments

The (Overdue) Collapse of Oracle's $900B Empire

https://www.youtube.com/watch?v=9Dne3rKiIn0
7•cable2600•1h ago•0 comments

Blocking AI-bot can be a double-edged Sword

https://www.theverge.com/ai-artificial-intelligence/1013195/ai-agents-blocked-web
1•zlu•1h ago•1 comments

Writing is no longer proof of work

https://www.seangoedecke.com/writing-is-no-longer-proof-of-work/
1•anotherevan•1h ago•0 comments

AI Reviews All-In

https://all-in-claim-check.pages.dev/
1•siliconc0w•1h ago•3 comments

We ran 53 open-source AI agents through behavioral tests and filed 37 bugs

https://defuzex.ai/blog/we-ran-53-open-source-ai-agents-through-behavioral-tests-and-filed-37-bugs
8•YaoAnthony•1h ago•1 comments