frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Show HN: AgentShield SDK – Runtime security for agentic AI applications

https://pypi.org/project/agentshield-sdk/
2•iamsanjayk•2mo 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•2mo 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•2mo 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.

AI, Power and Sociolinguistics [pdf]

https://www.researchgate.net/profile/Ico-Maly-2/publication/385703534_AI_power_and_sociolinguistics/links/6813618cdf0e3f544f502f05/AI-power-and-sociolinguistics.pdf
1•AntonioBarthes•1m ago•0 comments

Why Jolly Ranchers Are Banned in the UK but Not the US

https://www.wired.com/story/why-jolly-ranchers-are-banned-in-the-uk-but-not-the-us-moah-mosh-gras/
1•beardyw•3m ago•0 comments

PHP 8.5 alpha 1 is available for download

https://www.php.net/archive/2025.php
1•jeroenpeters•5m ago•0 comments

What if the moon turned into a black hole? [video]

https://www.youtube.com/watch?v=UQgw50GQu1A
1•skibz•8m ago•0 comments

Is the doc bot docs, or not?

https://www.robinsloan.com/lab/what-are-we-even-doing-here/
2•tobr•11m ago•0 comments

Which Workers Will A.I. Hurt Most: The Young or the Experienced?

https://www.nytimes.com/2025/07/07/business/ai-job-cuts.html
1•rustoo•15m ago•0 comments

Unminify JavaScript

https://jsmon.sh/tools/unminify/
1•rashahacks•19m ago•0 comments

Show HN: Multi-session Claude Code manager with async workflow

https://github.com/ObservedObserver/async-code
2•loa_observer•19m ago•0 comments

Bug Stories

https://500mile.email/
1•thinkingemote•20m ago•0 comments

Build an AI-Ready Data Foundation with MongoDB Atlas on Azure

https://www.mongodb.com/company/blog/innovation/build-an-ai-ready-data-foundation-mongodb-atlas-on-azure
1•amalinovic•20m ago•0 comments

Guile Lab Notebook: On the Move

https://wingolog.org/archives/2025/07/08/guile-lab-notebook-on-the-move
1•bwidlar•22m ago•0 comments

Grow a Garden Calculator

https://growagardencalculators.net/
2•dond1986•23m ago•0 comments

I need to know more about this

1•Tangabar•25m ago•0 comments

I Deleted My Steam Account After 20 Years

https://gist.github.com/Kaldaien/c66bf3dca62a5ac63785714f686e60ad
1•haunter•25m ago•0 comments

SUSE launches new European digital sovereignty service to meet surging demand

https://www.zdnet.com/article/suse-launches-new-european-digital-sovereignty-support-service-to-meet-surging-demand/
2•saubeidl•25m ago•0 comments

State Secrets for Sale: More Leaks from the Chinese Hack-for-Hire Industry

https://spycloud.com/blog/state-secrets-for-sale-chinese-hacking/
2•campuscodi•28m ago•0 comments

Human Behavior: AI Session Replays

https://www.humanbehavior.co/
1•handfuloflight•30m ago•0 comments

Ask HN: Bug Bounty Dilemma – Take the $$ and Sign an NDA or Go Public?

2•deep_thinker26•36m ago•2 comments

ESP32 Only WiFi / BLE Jammer

https://mastodon.social/@Atc1441/114819703241689541
1•rena2019•38m ago•0 comments

Show HN: I rewrote an outdated React Native map clustering library

https://github.com/suwi-lanji/rn-maps-clustering
2•hadat•42m ago•0 comments

Series of posts on HTTP status codes

https://evertpot.com/http/
1•antonalekseev•44m ago•0 comments

Most RESTful APIs Aren't RESTful

https://florian-kraemer.net//software-architecture/2025/07/07/Most-RESTful-APIs-are-not-really-RESTful.html
2•BerislavLopac•45m ago•0 comments

Bandle

https://bandle.app/
1•skibz•45m ago•1 comments

Springer Nature book on machine learning is full of made-up citations

https://retractionwatch.com/2025/06/30/springer-nature-book-on-machine-learning-is-full-of-made-up-citations/
5•ArmageddonIt•47m ago•0 comments

Polaris: A Post-training recipe for scaling RL on Advanced Reasoning models

https://hkunlp.github.io/blog/2025/Polaris/
4•limoce•51m ago•1 comments

The Small Data Showdown '25: Is It Time to Ditch Spark Yet?

https://milescole.dev/data-engineering/2025/06/30/Spark-v-DuckDb-v-Polars-v-Daft-Revisited.html
3•jamesblonde•58m ago•0 comments

40 Hot Swedish AI Startups

https://www.di.se/digital/here-are-the-swedish-ai-companies-everyone-is-talking-about/
10•imartin2k•1h ago•0 comments

2025 Ennie Nominees

https://ennie-awards.com/2025-nominees/
2•yakattak•1h ago•0 comments

From Dollar Dominance to the Slop Machine

https://kyla.substack.com/p/from-dollar-dominance-to-the-slop
2•sherlock_h•1h ago•0 comments

Enabling enhanced security for your app Developer Documentation

https://developer.apple.com/documentation/xcode/enabling-enhanced-security-for-your-app
3•seviu•1h ago•0 comments