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.

Using Local Coding Agents – By Sebastian Raschka, PhD

https://magazine.sebastianraschka.com/p/using-local-coding-agents
1•rbanffy•1m ago•0 comments

Game Boy Advance Dev: Logging to the Console

https://www.mattgreer.dev/blog/gba-dev-logging/
1•jandeboevrie•1m ago•0 comments

Shipping post-quantum cryptography to Python – The Trail of Bits Blog

https://blog.trailofbits.com/2026/06/30/shipping-post-quantum-cryptography-to-python/
1•rbanffy•1m ago•0 comments

MITS - Micro Instrumentation and Telemetry Systems

https://www.abortretry.fail/p/micro-instrumentation-and-telemetry
1•rbanffy•4m ago•0 comments

EndBASIC 0.14: Are we multimedia yet?

https://www.endbasic.dev/2026/07/endbasic-0.14.html
1•jmmv•4m ago•0 comments

Security Roundup: Apple's Hide My Email Service Fails to Hide Your Email

https://www.wired.com/story/security-roundup-apples-hide-my-email-service-fails-to-hide-your-email/
1•joozio•11m ago•0 comments

Liquid transforms into an energy-rich gel that stores power for months

https://news.northwestern.edu/stories/2026/06/cell-inspired-material-captures-energy-and-releases...
1•geox•11m ago•0 comments

Up and Down the Ladder of Abstraction

https://worrydream.com/LadderOfAbstraction/
2•highfrequency•14m ago•0 comments

Good APIs Age Slowly

https://yusufaytas.com/good-apis-age-slowly
13•thunderbong•15m ago•0 comments

How Tier-1 capital market is using AI Agent architecture

https://electronictradinghub.com/the-ai-agent-architecture-is-published-the-thresholds-are-not/
2•silahian•16m ago•0 comments

Plein Air

https://art.joonas.wtf/
2•bookofjoe•17m ago•0 comments

Finland's last analogue landline phones go silent after 150 years

https://www.euronews.com/next/2026/06/30/finlands-last-analogue-landline-phones-go-silent-after-1...
3•ohjeez•19m ago•0 comments

Show HN: AI Interview Coach – practice with honest hiring-manager-grade feedback

https://aiinterviewcoaches.com
1•Aldasams•19m ago•0 comments

Understanding Is the New Bottleneck

https://www.geoffreylitt.com/2026/07/02/understanding-is-the-new-bottleneck.html
1•backlit4034•21m ago•0 comments

OEIS: Number of stars on the US flag since 1775

https://oeis.org/A140646
3•Reasonablefish•21m ago•0 comments

Google Books (or similar) all book scans – $200k bounty

https://software.annas-archive.gl/AnnaArchivist/annas-archive/-/work_items/234
3•Cider9986•21m ago•0 comments

OpenScience: Workbench for scientific research using custom LLMs

https://github.com/synthetic-sciences/openscience
3•ignoramous•22m ago•0 comments

DCA: Arithmetic for Finite Computation

https://github.com/superalp1985/DCA-Discrete-Computer-Arithmetic
1•superalp•23m ago•0 comments

OverGraph: Embedded Graph Database

https://overgraph.io
1•gjmveloso•24m ago•0 comments

Canada's only watchmaking school still ticking after 80 years

https://www.cbc.ca/news/canada/montreal/canada-s-only-watchmaking-school-9.7254211
2•throw0101a•26m ago•0 comments

Meta data center water discharges suspended for contaminating water supply

https://www.tomshardware.com/tech-industry/data-centers/cheyenne-suspends-data-center-fill-and-fl...
1•sensanaty•27m ago•0 comments

Leaking YouTube Creators Private Videos

https://javoriuski.com/post/youtube
17•javxfps•27m ago•3 comments

Cory Doctorow on the Right – and Wrong – Way to Criticize AI

https://jacobin.com/2026/06/ai-bubble-layoffs-workers-copyright?
2•momentmaker•29m ago•0 comments

Show HN: Routing24 – free route optimization agent for Claude Cowork/WebMCP

https://github.com/routing24/skill
1•dennis16384•29m ago•0 comments

SyncForge – Lightweight offline-first sync for Room and Kotlin Multiplatform

https://github.com/Arsenoal/syncforge
1•Arsen971•30m ago•0 comments

Continued CO2 emissions will impair cognition (2020)

https://www.colorado.edu/mechanical/2020/04/21/continued-co2-emissions-will-impair-cognition
1•irdc•32m ago•0 comments

Show HN: A Kagi News–style news aggregator for Zimbabwe

https://www.ikka.cloud/
1•mugamuga•34m ago•0 comments

We need an accounting system for cognitive debt

https://raw.githubusercontent.com/MikaeI/cognizance/refs/heads/main/we_need_an_accounting_system_...
3•mikaelaast•34m ago•0 comments

Rob Pike – 'Concurrency Is Not Parallelism' [video]

https://vimeo.com/49718712
11•jruohonen•36m ago•6 comments

Pip – one number before you spend

https://spendwithpip.com/demo
2•tylermayberry•36m ago•1 comments