-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introducing new team member Quark Script Agent #37
Conversation
Quark Script AgentIntroducing Quark's new member, the Quark Script Agent, the first AI assistant in the Quark team. This agent enables users to perform analyses using natural language, without the need for programming or scripting expertise, making the process simple and user-friendly. The Quark Script Agent integrates with LangChain, which utilizes OpenAI's large language models to act as a bridge between natural language and the Quark Script API. LangChain defines the Quark Script API as a tool that large language models can understand and use. This means that users can easily call new analysis APIs using natural language commands by simply adding new tools as needed. Showcase: Detecting CWE-798 with Quark Script AgentHere's an example of using the Quark Script Agent with the InstallationTo install the Quark Script Agent, you need to install the following dependencies:
ResultDecode the PromptsHere are two prompts, each for executing different analysis processes.
Used Quark Script APIs/Tools that LLM used:
Used Quark Script APIs/Tools that LLM used: The
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thank @pulorsok !
Quark Script Agent
Introducing Quark's new member, the Quark Script Agent, the first AI assistant in the Quark team. This agent enables users to perform analyses using natural language, without the need for programming or scripting expertise, making the process simple and user-friendly.
The Quark Script Agent integrates with LangChain, which utilizes OpenAI's large language models to act as a bridge between natural language and the Quark Script API. LangChain defines the Quark Script API as a tool that large language models can understand and use. This means that users can easily call new analysis APIs using natural language commands by simply adding new tools as needed.
Showcase: Detecting CWE-798 with Quark Script Agent
Here's an example of using the Quark Script Agent with the
quarkScriptAgent.py
. This agent can currently detect CWE-798 vulnerability in the ovaa.apk. See the details below.Quick Start
Decode the Prompts
Here are two prompts, each for executing different analysis processes.
Used Quark Script APIs/Tools that LLM used:
Rule()
Used Quark Script APIs/Tools that LLM used:
runQuarkAnalysis()
,getParameterValues()
andisHardCoded()
The
Rule()
,runQuarkAnalysis()
,getParameterValues()
, andisHardCoded()
functions are treated as tools within LangChain, enabling them to be invoked through thegpt-4o
model to analyze and identify CWE-798 vulnerabilities in the ovaa.apk sample.quarkScriptAgent.py
.quarkScriptAgent.py
in the same folder; the LLM will automatically find files with matching names.