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.

Salt Harvester

https://recyclingmachine.org/salt-harvester/
1•shuliymachinery•48s ago•0 comments

/R/MyBoyfriendIsAI

https://old.reddit.com/r/MyBoyfriendIsAI/
1•toilet•2m ago•0 comments

The Mystery of the Siberian Craters

https://nautil.us/the-mystery-of-the-siberian-craters-1051317
1•the-mitr•3m ago•0 comments

Statement from the President of the British Academy on UK higher ed. crisis

https://www.thebritishacademy.ac.uk/news/statement-from-the-president-of-the-british-academy-on-t...
1•theanonymousone•4m ago•0 comments

Using a projector for a home office setup to prevent eyestrain/myopia (2021)

https://sofiapandelea.medium.com/monitor-replacement-using-a-projector-for-a-home-office-setup-23...
1•plun9•6m ago•0 comments

Claude Fable relaunch disappoints users with nerfed performance

https://www.bleepingcomputer.com/news/artificial-intelligence/claude-fable-relaunch-disappoints-u...
2•giuliomagnifico•10m ago•0 comments

AI Art as Curation

https://blog.andymasley.com/p/ai-art-as-curation
1•jger15•12m ago•0 comments

10x smaller vector indexes in pgvector

https://github.com/pgvector/pgvector/pull/989
1•thunderbong•15m ago•0 comments

The night the Earth shook, strangers started to draw

https://sheets.works/data-viz/strangers-draw-maps
1•altilunium•16m ago•0 comments

Pandoc Lua Filters

https://pandoc.org/lua-filters.html
1•ankitg12•20m ago•0 comments

Microsoft Disclosure Provides Rare Glimpse of Tax Haven Tactics

https://www.nytimes.com/2026/07/03/technology/microsoft-europe-disclosure-tax-havens.html
1•giuliomagnifico•21m ago•1 comments

1966: Alan Turing's Machines – Mathematics in Action – BBC Archive

https://www.youtube.com/watch?v=oRBS70J2Poo
1•wjSgoWPm5bWAhXB•24m ago•0 comments

Interactive video game recommendation engine

https://nodal.gg
1•xiaodai•27m ago•0 comments

LLMs adopt the social biases of human if assigned different professional roles

https://www.psypost.org/artificial-intelligence-chatbots-adopt-human-power-dynamics-and-social-bi...
1•giuliomagnifico•29m ago•1 comments

What Is Amazon EventBridge?

https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-what-is.html
1•ankitg12•31m ago•0 comments

Someone infected a spyware probe overseer with spyware

https://cyberscoop.com/pegasus-spyware-pega-committee-member-targeted/
1•miohtama•32m ago•0 comments

Squeezes – Free Bulk Image Compressor

https://squeezes.vercel.app
2•marpe•35m ago•0 comments

A Day in the Life of an Enshittificator

https://kottke.org/26/04/day-in-the-life-of-an-enshittificator
5•hosteur•36m ago•0 comments

ReactOS Implements First Windows NT6 System Call Toward Vista Compatibility

https://www.phoronix.com/news/ReactOS-First-NT6-Syscall
3•serhack_•36m ago•2 comments

UK home to third largest number of billion dollar startups in the world

https://www.smeweb.com/uk-home-to-third-largest-number-of-billion-dollar-start-ups-in-the-world/
2•dukeyukey•38m ago•0 comments

Swimming Pools, Pee, and Trying to Delete Your Data from the Internet

https://www.troyhunt.com/swimming-pools-pee-and-trying-to-delete-your-data-from-the-internet/
1•jruohonen•40m ago•0 comments

AWS says it added more data center capacity

https://www.datacenterdynamics.com/en/news/aws-says-it-added-more-data-center-capacity-than-any-o...
1•01-_-•41m ago•0 comments

ClickHouse is winning the observability wars

https://matduggan.com/clickhouse-is-winning-the-observability-wars/
1•hiyer•41m ago•0 comments

And someone has already made an age verification bypass addon for Firefox

https://github.com/helloyanis/age-verification-bypass
1•My_Name•42m ago•0 comments

Meta Compute: Everyone Wants to Be a Neocloud

https://newsletter.semianalysis.com/p/meta-compute-everyone-wants-to-be
1•01-_-•43m ago•0 comments

Multi-Cloud DocumentDB Deployment (Kubernetes Operator)

https://github.com/documentdb/documentdb-kubernetes-operator/blob/main/documentdb-playground/mult...
1•mariuz•43m ago•0 comments

Transcribe.cpp

https://blog.mozilla.ai/announcing-transcribe-cpp/
1•Gedxx•45m ago•0 comments

Understanding Latency Hiding on GPUs [pdf]

https://www2.eecs.berkeley.edu/Pubs/TechRpts/2016/Archive/EECS-2016-143.pdf
1•porridgeraisin•45m ago•0 comments

Show HN: Adaptive Feed Reader – read your LinkedIn feed like Hacker News

https://chromewebstore.google.com/detail/adaptive-feed-reader/pccgfmbmlhangeheghhkkcfchoopnglj
1•aalksii•46m ago•0 comments

Show HN: Ordered dithering command-line tool

https://github.com/scascino4/dither
1•scascino4•47m ago•0 comments