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.

Touch to Pixels: UI Pipeline Internals on iOS

https://blog.jacobstechtavern.com/p/ui-pipeline-internals
1•jakey_bakey•1m ago•0 comments

Android 17 Is Here

https://android-developers.googleblog.com/2026/06/Android-17.html
2•onnnon•2m ago•0 comments

New Domain for Sign in with Apple and iCloud+ Hide My Email

https://developer.apple.com/news/?id=sus6t6ab
1•embedding-shape•2m ago•0 comments

Show HN: Pacwich – lightweight new monorepo tooling on top of Bun, NPM, or pnpm

https://pacwich.dev/
1•smorsic•2m ago•0 comments

Ask HN: Why does Spotlight indexing get stuck in loops but Time Machine doesn't?

1•amichail•4m ago•0 comments

GrapheneOS has been ported to Android 17 and official releases are coming soon

https://discuss.grapheneos.org/d/36469-grapheneos-has-been-ported-to-android-17-and-official-rele...
2•Cider9986•6m ago•0 comments

Algebraic Music Composition

https://monictheory.com/about
1•midi_finder•7m ago•0 comments

Mistral Repeats State-Sponsored Disinformation Half the Time When Prompted

https://www.newsguardtech.com/special-reports/mistral-le-chat-ai-chatbot-repeats-falsehoods-half-...
1•doener•7m ago•0 comments

SAMF- Deterministic Moscow guardrails for LLM multi-agent loops

https://github.com/NanoPrompt/samf-framework
1•nanoprompter•9m ago•0 comments

MetaLens – open-source image metadata inspector with a free REST API

https://imagemetadataextractor.com/
1•vexelior•10m ago•0 comments

Sustained maneuver has a propulsion problem – SpaceNews

https://spacenews.com/sustained-maneuver-has-a-propulsion-problem/
1•rbanffy•10m ago•0 comments

Show HN: My Mac shoos me away every time I bite my nails

https://github.com/jkkronk/shoo
1•jkkronk•11m ago•0 comments

SPECS, $2195 Smart Glasses by Snap

https://www.specs.com/smart-glasses/specs-27
1•rock_artist•12m ago•0 comments

Why does a museum want to cancel its own Charles Dickens exhibition?

https://www.spiked-online.com/2026/06/01/why-does-a-museum-want-to-cancel-its-own-charles-dickens...
4•bryanrasmussen•12m ago•1 comments

The Scope of CSS Function

https://master.dev/blog/the-scope-of-css-function/
2•ibobev•13m ago•0 comments

Partial Fraction Decomposition

https://www.johndcook.com/blog/2026/06/16/partial-fraction-decomposition/
2•ibobev•14m ago•0 comments

Beware of Star Trek managers, especially when bearing MBAs

https://nibblestew.blogspot.com/2026/06/beware-of-star-trek-managers-especially.html
1•ibobev•14m ago•0 comments

Research finds MV3 does not affect ad-blocking or anti-tracking effectiveness

https://github.com/lukic-papadopoulos-research/impact_of_google_mv3_update_on_ad_blocker_effectiv...
3•maxloh•16m ago•1 comments

Did AI write this article?

https://www.economist.com/graphic-detail/2026/06/16/did-ai-write-this-article
2•vinni2•16m ago•2 comments

Ask Nvidia: musl drivers now

1•nenadg•19m ago•0 comments

European Commission rejects new laws for Stop Destroying Videogames

https://www.gamingonlinux.com/2026/06/european-commission-rejects-new-laws-for-stop-destroying-vi...
2•pier25•21m ago•1 comments

Show HN: cuTile Rust: Safe, data-race-free GPU kernels in Rust

https://github.com/nvlabs/cutile-rs
2•melihelibol•23m ago•1 comments

Frood, an Alpine Initramfs NAS

https://words.filippo.io/frood/
7•ethanpil•24m ago•0 comments

Android 17

https://blog.google/products-and-platforms/platforms/android/android-17-features/
3•0xedb•24m ago•1 comments

Tokens and Dreams

https://charlesleifer.com/blog/tokens-and-dreams/
2•cleifer•26m ago•0 comments

A new flip phone that blocks social media at a system level is coming out

https://www.pcgamer.com/hardware/a-new-flip-phone-that-blocks-social-media-at-a-system-level-is-c...
4•evo_9•27m ago•0 comments

Nobody clicks your share buttons

https://ankursethi.com/links/nobody-clicks-your-share-buttons/
41•speckx•29m ago•10 comments

The EU won't pursue a mandatory game preservation law

https://www.engadget.com/2195679/the-eu-wont-pursue-a-mandatory-game-preservation-law/
3•poisonborz•31m ago•0 comments

Agentic coding and persistent returns to expertise

https://www.anthropic.com/research/claude-code-expertise
4•I_am_tiberius•31m ago•1 comments

Lexar Wants to Offload Local AI Models to SSD Amid the RAMpocalypse

https://www.techpowerup.com/350009/lexar-wants-to-offload-local-ai-models-to-ssd-amid-the-rampoca...
3•green_biri•32m ago•2 comments