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: Muuted – I built a feed that knows when to shut up

https://muuted.com/
1•Caldwellone•4m ago•1 comments

Himalaya – CLI to Manage Emails

https://github.com/pimalaya/himalaya
1•tangue•6m ago•0 comments

Simple app to keep creativity ALIVE

https://www.theideasgarden.com/
1•matejsimko•7m ago•0 comments

Foomflops: Three Decades of AI Predictions

https://foom.hyperplex.org/
1•blfr•12m ago•0 comments

Trump administration to pay German firm $1.22B to cut offshore wind leases

https://www.theguardian.com/us-news/2026/aug/06/rwe-deal-wind-leases
2•leonidasrup•12m ago•0 comments

Summary of Changes – Lovable Privacy Policy

https://lovable.dev/legal/privacypolicyaugust2026
1•doener•16m ago•0 comments

Manticore Search authentication rollout checklist for production

https://medium.com/@s_nikolaev/manticore-search-authentication-rollout-checklist-for-production-e...
1•snikolaev•16m ago•0 comments

Emacs Arbitrary Code Execution Returns

https://eshelyaron.com/posts/2026-08-06-emacs-arbitrary-code-execution-returns.html
2•eshelyaron•17m ago•0 comments

Accurate Measurement of Time [pdf]

https://tf.nist.gov/general/pdf/1011.pdf
2•andsoitis•20m ago•0 comments

Mark Twain Predicts the Internet in 1898

https://www.openculture.com/2026/08/mark-twain-predicts-the-internet-in-1898.html
2•theanonymousone•20m ago•0 comments

From Sundials to Atomic Clocks [pdf]

https://tf.nist.gov/general/pdf/1796.pdf
1•andsoitis•21m ago•0 comments

Meta enters the coding-agent race with Muse Code

https://developer.meta.com/ai/products/muse-code/
2•x7ikmet•22m ago•1 comments

I've succesfully compiled Netscape 3.0.2 on a 64 Debian

https://www.reddit.com/r/netscape/comments/1ve7wkm/ive_succesfully_compiled_netscape_302_on_a_64/
4•zekrioca•24m ago•0 comments

The German Mittelstand

https://kieranvelasquez.substack.com/p/on-the-german-mittelstand
2•osnium123•25m ago•0 comments

Quantum entanglement generated by sunlight for the first time

https://www.uottawa.ca/about-us/news-all/quantum-entanglement-generated-sunlight-first-time
1•giuliomagnifico•26m ago•0 comments

Common knowledge shapes our lives and societies

https://theconversation.com/how-does-common-knowledge-shape-our-individual-lives-and-our-societie...
2•andsoitis•26m ago•0 comments

Being given a 100% AI generated score for your own mental work hurts

https://mastodon.thi.ng/@toxi/117031237659514917
3•rapnie•30m ago•0 comments

Battery on Wheels Makes Any Diesel Truck Electric in 5 Minutes [video]

https://www.youtube.com/watch?v=Idhfl-2FHJw
1•thelastgallon•31m ago•0 comments

A new Git diff tool

https://github.com/aymanbagabas/drift
2•stillmatic•31m ago•0 comments

Taste is all you need

https://iam.mt/taste-is-all-you-need/
2•thallavajhula•34m ago•0 comments

OBASE: Object-Based Address-Space Engineering to Improve Memory Tiering

https://www.usenix.org/conference/osdi26/presentation/banakar
1•matt_d•35m ago•0 comments

Kalman Filter: The Tour

https://www.staszewski.xyz/blog/kalman-filter/
1•kamilstaszewski•35m ago•0 comments

Bigos (Polish Hunter's Stew) Recipe Builder

https://chefsbinge.com/bigos-recipe-builder/
1•doublepg23•36m ago•0 comments

The em-dash em-beds in Congress

https://arxiv.org/abs/2608.05889
1•jruohonen•37m ago•1 comments

AI-generated vulnerability patches still require expert human review

https://1password.com/blog/why-ai-generated-patches-still-require-human-review
1•jmmv•37m ago•0 comments

$1B of iPhone 18 Pro chips 'awaiting packaging' due to DRAM shortages

https://www.tomshardware.com/pc-components/dram/usd1-billion-of-iphone-18-pro-chips-on-the-shelve...
1•kristianp•39m ago•0 comments

Bacterial supplements may boost female fertility

https://medicalxpress.com/news/2026-08-bacterial-supplements-boost-female-fertility.html
1•OutOfHere•40m ago•0 comments

FDA Approves First Drug to Treat the Full Range of Narcolepsy Type 1 Symptoms

https://www.fda.gov/news-events/press-announcements/fda-approves-first-drug-treat-full-range-narc...
1•OutOfHere•41m ago•0 comments

Framework discloses data breach via Metabase 0-day

https://community.frame.work/t/framework-data-breach-discussion/83939
12•RobinHirst11•46m ago•0 comments

Nikita Bier stepping down from Head of Product on X (previous Twitter)

https://old.reddit.com/r/twitterhelp/comments/1vgkbid/nikita_bier_stepping_down_from_head_of_prod...
1•nomilk•48m ago•1 comments