what's the plan for v1 security analyzer? I have a...
# proj-sdk
w
what's the plan for v1 security analyzer? I have a friend who is hoping to add an implementation
c
@wide-doctor-37830 might expand it a bit, but i believe this is the scaffold we have for now https://github.com/All-Hands-AI/agent-sdk/tree/main/openhands/sdk/security
they can feel free to PR in their implementation!
w
I think maybe it doesn't belong in the SDK--I don't want to create another modal+runloop+e2b rats nest 🫠
nod 1
each one would bring in new dependencies too
but if they created a python package, the end-user could glue that into our SDK
c
depending on how we want to implement the grayswan analyzer, i guess we can design a general
APISecurityAnalyzer
that accepts a
base_url
and a
api_key
? maybe we can just ask them to package their analyzer as a server endpoint that's plug and play
w
The current implementation is enough to get the LLM-based security analyzer up and running but probably not anything fancier, hoping to improve the interface as we port other analyzers. Agreed that we shouldn't have 3rd party security analyzers in the SDK!
w
I'm imagining something like
Copy code
from openhands.sdk import Agent
from grayswan.openhands import OpenHandsSecurityAnalyzer

# ...

analyzer = OpenHandsSecurityAnalyzer(api_key="asdf")
agent = Agent(security_analyzer=analyzer)
w
That interface is exactly what we're going for. The LLM security analyzer example sets it up like this (here):
Copy code
security_analyzer = LLMSecurityAnalyzer()
agent = Agent(llm=llm, tools=tools, security_analyzer=security_analyzer)
🙌 1