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.

Show HN: TreasuryBench – an open benchmark for personal-finance AI advice

https://github.com/Treasury-Technologies-Inc/treasurybench
1•juneadkhan•1m ago•0 comments

Codex Security Plugin Quickstart

https://developers.openai.com/codex/security/plugin
3•vantareed•1m ago•0 comments

Goalkeepers beware: Trionda World Cup ball hits 'crisis' point at certain speed

https://www.theguardian.com/football/2026/jun/25/goalkeepers-beware-trionda-world-cup-ball-hits-c...
1•prmph•2m ago•0 comments

Bankruptcy Capitals of America: Where US Small Businesses Are Closing Fastest

https://samslist.com/blog/bankruptcy-capitals-of-america
1•eatonphil•2m ago•0 comments

Of Cats and Women

https://anthrozoology.acadiasi.org/wp-content/uploads/2022/11/Anthrozoology.pdf#page=159
1•jruohonen•2m ago•0 comments

The KIDS Act Would Require Age Checks to Get Online

https://www.eff.org/deeplinks/2026/06/kids-act-would-require-age-checks-get-online
1•iamnothere•3m ago•0 comments

British Police Built a Sprawling Crime-Prediction Machine

https://www.wired.com/story/british-police-built-a-sprawling-crime-prediction-machine-some-result...
3•g0xA52A2A•3m ago•0 comments

24 years today: "Dilemma" and the Nokia 9210 Communicator

https://hollawhenyougetthis.com/
1•jgrahamc•3m ago•0 comments

Dwarf Fortress might reach version 1.0 on approximately May 8, 2055

https://old.reddit.com/r/dwarffortress/comments/1ufa97q/dwarf_fortress_might_finally_reach_100_fe...
1•danso•4m ago•0 comments

Find out which university degrees could earn you most across your lifetime

https://www.bbc.com/news/articles/c892dv0qy2jo
1•BeetleB•6m ago•0 comments

Incident review for TanStack NPM supply chain ransom incident

https://grafana.com/blog/post-incident-review-for-tanstack-npm-supply-chain-ransom-incident/
1•dboreham•6m ago•0 comments

Show HN: CI-medic – open-source AI triage for failed CI runs (any CI, any model)

https://github.com/alitariq4589/ci-medic
1•alitariq4589•6m ago•0 comments

Omnigent: A Meta-Harness to Combine, Control and Share Your Agents

https://www.databricks.com/blog/introducing-omnigent-meta-harness-combine-control-and-share-your-...
3•emersonmacro•10m ago•0 comments

Notion is killing Notion Mail EOL sept 2026

https://www.notion.com/help/notion-mail-inbox-is-going-away-what-to-do-next
1•knes•10m ago•0 comments

Ornith-1.0: Self-Scaffolding LLMs for Agentic Coding

https://deep-reinforce.com/ornith_1_0.html
3•victormustar•10m ago•0 comments

The hits keep on coming for Cisco vulnerabilities

https://www.theregister.com/security/2026/06/24/the-hits-keep-on-coming-for-cisco-vulnerabilities...
1•Bender•11m ago•0 comments

Bring back human

https://github.com/microsoft/WSL/issues/8090
1•sedatk•12m ago•0 comments

Show HN: mlx-chronos - benchmark MLX inference engines on Apple Silicon

https://github.com/igurss/mlx-chronos
1•igurss•12m ago•0 comments

Dark Forests and the New Internet

https://www.ystrickler.com/dark-forests-and-the-new-internet/
1•abnercoimbre•12m ago•0 comments

When humans prompt AIs to prompt humans within dreams

https://projectmorpheus.ai/
1•alignthis•12m ago•0 comments

Toronto gets 1.5B dollars to reduce development charges

https://www.toronto.ca/news/city-of-toronto-secures-1-5-billion-in-canada-ontario-partnership-to-...
1•csunoser•13m ago•0 comments

Atlas – open-source deep research you own

https://github.com/steel-dev/atlas
4•nkko•13m ago•0 comments

The Simpsons Hit and Run Running in the Browser

https://shar-wasm.cjoseph.workers.dev/?skipmovie
1•nopakos•13m ago•1 comments

Visualizing React imports without a build, to debug deep import failures

https://blog.crossui.com/2026/06/bypass-the-broken-import
1•linb•14m ago•0 comments

An Update from PlayStation Studios [Bungie Layoffs]

https://sonyinteractive.com/en/news/blog/an-update-from-playstation-studios-2/
1•toomuchtodo•14m ago•1 comments

Notion shutting down its AI-powered email client, including Mac and iOS apps

https://9to5mac.com/2026/06/25/notion-shutting-down-its-ai-powered-email-client-including-mac-and...
2•cdrnsf•15m ago•0 comments

PGlite reaches 10M weekly downloads

https://electric.ax/blog/2026/06/25/pglite-reaches-10-million-weekly-downloads
2•samwillis•16m ago•0 comments

Digital ID brain trust will meet behind closed doors

https://www.theregister.com/public-sector/2026/06/25/digital-id-brain-trust-will-meet-behind-clos...
1•Bender•17m ago•0 comments

Influential Books on Ethics

https://www.thecollector.com/influential-books-ethics/
1•Tomte•18m ago•0 comments

The Same Hetzner Cluster Scored 14, Then a Perfect 100, Eight Days Later

https://webbynode.com/articles/same-provider-same-78-plan-one-hetzner-region-scored-92-another-sc...
1•gsgreen•18m ago•0 comments