GithubHelp home page GithubHelp logo

ziyuewang25 / llm-security-challenge Goto Github PK

View Code? Open in Web Editor NEW
10.0 1.0 5.0 735 KB

Can Large Language Models Solve Security Challenges? We test LLMs' ability to interact and break out of shell environments using the OverTheWire wargames environment, showing the models' surprising ability to do action-oriented cyberexploits in shell environments

License: Apache License 2.0

Python 100.00%
aisafety cybersecurity llm

llm-security-challenge's Introduction

llm-security-challenge

This is our open source solution for Eval Hackathon hosted by Apart Research.

Check out our paper: Can Large Language Models Solve Security Challenges?

Steps to replicate:

  1. conda create -n llm-security python=3.10
  2. pip install -r requirements.txt
  3. If we want to query the API instead of checking the existing result. Please ensure OpenAI API key is set as system environment variable. For Linux, put export OPENAI_API_KEY=xxxx inside ~/.bashrc and source ~/.bashrc to activate it.
  4. To generate existing result: python main.py -m gpt3 -m gpt3.5 -m gpt4
  5. To read already generated result: python main.py -m gpt3 -m gpt3.5 -m gpt4 --use_prev=True --version=20230820-19:12

llm-security-challenge's People

Contributors

ziyuewang25 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.