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.

PHP is Dead (and AI is to blame)

https://www.lifeofguenter.de/2026/09/php-is-dead-and-ai-is-to-blame
1•lifeofguenter•1m ago•0 comments

Show HN: Impress your boss with interactive Scikit-Learn Decision Tree

https://github.com/mljar/supertree
1•pplonski86•4m ago•0 comments

What makes $BigTechCompany's products bad, anyway?

https://herecomesthemoon.net/2026/09/why-is-big-tech-bad/
1•birdculture•5m ago•0 comments

Show HN: Project Estimator – a free, no sign-up software cost estimator

https://project-estimator.webround.net/
1•LucaSiviero•6m ago•0 comments

US claims Chinese AI firms are carrying out 'industrial-scale' theft

https://www.cnn.com/2026/09/08/politics/us-accuses-china-of-stealing-ai-technology
1•jllyhill•6m ago•0 comments

Primework by Kunst X

https://kunstx.online/primework/
2•kunstx•6m ago•1 comments

Bristol Myers' blood cancer cell therapy succeeds in mid-stage trial

https://www.reuters.com/business/healthcare-pharmaceuticals/bristol-myers-blood-cancer-cell-thera...
1•thunderbong•7m ago•0 comments

How Much of the Internet Is Written with AI?

https://www.pewresearch.org/data-labs/2026/08/20/how-much-of-the-internet-is-written-with-ai/
1•dp-hackernews•8m ago•0 comments

Steam now requires Australian users to verify their age with a credit card

https://www.reddit.com/r/Games/comments/1wbauz5/steam_now_requires_australian_users_to_verify/
1•haunter•8m ago•0 comments

Show HN: CreepyLink: A fun tool to turn safe URLs into suspicious looking links

https://www.creepylink.online
1•tangjei•11m ago•0 comments

Law schools tell students to put AI away

https://www.ft.com/content/8ddd3668-5858-45c3-b34f-a6bafc678187
4•1vuio0pswjnm7•12m ago•0 comments

Our Technological Wager

https://dissentmagazine.org/article/artificial-futures-ai-risk/
1•robtherobber•15m ago•0 comments

Italian tech collective Autistici/Inventati shut down by Trump administration

https://sabot.media/post/ai-shuts-down
2•kYuZz•16m ago•0 comments

ScanChess – Digitize handwritten chess scorebooks and diagrams into PGN/FEN

https://scanchess.com/
1•sudoai•20m ago•0 comments

Want to borrow a dinosaur fossil? Try California's taxidermy lending library

https://www.theguardian.com/us-news/2026/sep/08/san-diego-taxidermy-museum
1•rdmuser•20m ago•0 comments

Ryanair ATC disruption update with Synthesia AI representative [video]

https://www.youtube.com/shorts/pIfAvoHtj44
2•50kIters•21m ago•1 comments

The diversity hypothesis: diversity and scientific output/impact in the sciences

https://link.springer.com/article/10.1007/s11186-026-09714-x
2•mpweiher•21m ago•0 comments

Show HN: Compute Polynomials Twice as Fast

https://thomasahle.com/fast-polynomials/
1•thomasahle•22m ago•0 comments

The Fundamental Limits of LLMs at Scale

https://openreview.net/pdf?id=BIRDGVrom8
1•leeuw01•22m ago•0 comments

Diskless Kafka: Object Storage, KIP-1150, and Kafka's Future

https://softwaremill.com/diskless-kafka-object-storage-kip-1150-and-kafkas-future/
1•mmatloka•29m ago•0 comments

Gambling with our lives: AI researcher quits Anthropic with warning about safety

https://www.politico.eu/article/anthropic-openai-researcher-jacob-coxon-warns-ai-could-kill-humans/
2•taubek•32m ago•0 comments

Arm's C2-Ultra, G2-Ultra NX, and CSS N4 IP

https://chipsandcheese.com/p/arms-c2-ultra-g2-ultra-nx-and-css
1•rbanffy•32m ago•0 comments

Google warns lower quality as it revamps Europe search results to avoid EU fines

http://www.reuters.com/world/google-warns-lower-quality-it-revamps-europe-search-results-avoid-eu...
2•1vuio0pswjnm7•32m ago•0 comments

Bitap: My favorite string matching algorithm

https://jo3-l.dev/posts/bitap/
1•fanf2•33m ago•0 comments

CogniFind is now available for Windows

https://www.cognifind.co/
1•hisp•33m ago•1 comments

If I wanted to maximize AI risk

https://twitter.com/kellerjordan0/status/2097526284918419662
1•tosh•38m ago•0 comments

Building Jarvis: a better voice starts before training

https://fpl.dev/post/building-jarvis-tts-and-dataset-studio/
1•ajmwagar•40m ago•1 comments

Rails devs: heads up on JSON 3.0 gem

https://github.com/rails/rails/issues/58685
1•jjgreen•40m ago•1 comments

Teleporting ":3" – an introduction to quantum computing

https://blog.teddy55.com/Posts/24.06/quantum-computing-with-qsharp
1•Teddy__•48m ago•0 comments

People are more likely to ditch the car and use an e‑bike if they feel safe

https://theconversation.com/people-are-more-likely-to-ditch-the-car-and-use-an-e-bike-if-they-fee...
2•robtherobber•49m ago•0 comments