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.

Cell therapy successful in treating rheumatoid arthritis

https://www.charite.de/en/service/press_reports/artikel/detail/cell_therapy_successful_in_treatin...
1•geox•26s ago•0 comments

Header-only C++20 sorting and selection for unsigned 32-bit and 64-bit integers

https://github.com/morishuz/RadixKit
1•oryx1729•2m ago•0 comments

George Orwell's essay on the atomic bomb anticipates Nineteen Eighty-Four

https://blog.plover.com/book/Orwell-atom-bomb.html
2•speckx•2m ago•0 comments

OpenGEMM: Open-source B200 GEMM kernels

https://github.com/aramesh10/OpenGEMM/tree/main
1•adityar2•4m ago•1 comments

Ask HN: How can I browse HN in dark mode?

4•herodoturtle•5m ago•2 comments

Show HN: Surraura – audio on your Mac in a simulated environment (Helps my ADHD)

1•jahala•5m ago•0 comments

Switching to GNU Guix: A Beginner's Perspective

https://whhone.com/posts/switching-to-gnu-guix/
2•signa11•5m ago•0 comments

Golang developers should try Odin

https://rm4n0s.github.io/posts/2-go-devs-should-learn-odin/
2•signa11•8m ago•0 comments

DeepDog 2: Outperforms Gemini and OpenAI deep research at a fraction of the cost

https://github.com/beneadie/deep_dog_2
2•beneadie01•9m ago•1 comments

Pennsylvania Data Center Limits Are a Threat to Gas Firms, Trade Group Says

https://www.bloomberg.com/news/articles/2026-09-11/pennsylvania-data-center-limits-are-a-threat-t...
1•cdrnsf•9m ago•0 comments

Did Trump Permanently Damage U.S.–Canada Relations? [video]

https://www.youtube.com/watch?v=lsRhHpwZfOk
2•mooreds•14m ago•1 comments

Flectar Mail – native cross-platform email client

https://flectar.com/mail/
1•bj-rn•15m ago•0 comments

Romania soccer introduces black card to 'combat abusive behaviour' from parents

https://www.nytimes.com/athletic/7586821/2026/09/12/football-black-card-referee/
3•thunderbong•15m ago•0 comments

The Smoital System – A method of timekeeping on Mars based on UTC

https://www.benjoffe.com/smoitus
1•mooreds•16m ago•0 comments

A fast, free, and open-source local AWS service emulator built for developers

https://floci.io/floci/
2•mooreds•17m ago•0 comments

Iris-mini – open search agent on Qwen3.6-35B-A3B

https://github.com/AllSpark-Research/Iris
1•iamsyr•17m ago•0 comments

Former CEO of AI Company Joonko Pleads Guilty to Securities Fraud

https://www.justice.gov/usao-sdny/pr/founder-and-former-ceo-artificial-intelligence-company-plead...
1•stikit•17m ago•0 comments

Recurrent Looped Transformer

https://yifanzhang-pro.github.io/recurrent-looped-tranformer/
2•meffmadd•19m ago•0 comments

Branch Ergonomic Chair Pro (Sega Edition) Review: Comfy, Not Boring

https://www.wired.com/review/branch-ergonomic-chair-pro-sega-edition/
1•joozio•22m ago•0 comments

Show HN: 1Baton – a no-code tool for chaining API calls

https://1baton.com
2•sagivy•24m ago•0 comments

MIT: Report on AI Use in Teaching, Learning, and Research Training

https://aiandeducation.mit.edu/
1•trauco•27m ago•0 comments

Mushroom leather may be ready for mass production

https://www.anthropocenemagazine.org/2026/09/plastic-free-fungus-based-leather-is-going-big/
2•speckx•30m ago•0 comments

David Sacks: OpenAI and Anthropic Don't Need Regulations to Pace Frontier Models

https://twitter.com/DavidSacks/status/2098973625252708460
23•kolanos•31m ago•2 comments

The Art and Science of Listening

https://www.gatesnotes.com/home/home-page-topic/reader/the-art-and-science-of-listening
1•andsoitis•32m ago•0 comments

A Cheesehead's View of the World

https://scottsumner.substack.com/p/a-cheeseheads-view-of-the-world
1•paulpauper•33m ago•0 comments

Rapidly scaling online storage to serve over 1B ChatGPT users

https://openai.com/index/scaling-storage-one-billion-users-part-one/
2•porridgeraisin•33m ago•0 comments

Iran 'blew the hell out of' base in Bahrain, acting Navy Secretary admits

https://taskandpurpose.com/news/navy-base-bahrain-iran-damage/
7•ilamont•33m ago•0 comments

Preventing AI Collusion: Are you paying attention now?

https://aiprospects.substack.com/p/preventing-ai-collusion-are-you-paying
1•paulpauper•33m ago•0 comments

A simple model of AI-aided economic growth

https://marginalrevolution.com/marginalrevolution/2026/09/a-simple-model-of-ai-aided-economic-gro...
3•paulpauper•34m ago•0 comments

Zuse Computer Museum Forced to Close

https://www.i-programmer.info/news/82-heritage/19142-zuse-computer-museum-forced-to-close.html
1•vitplister•35m ago•0 comments