Giter Club home page Giter Club logo

huntwithchatgpt's Introduction

HuntWithChatGPT

This is a tiny proof-of-concept PowerShell script to do threat hunting using ChatGPT (text-davinci-003). It extracts Windows event logs, ASEP/autoruns, running processes from target system and sends requests to OpenAI API to check if certain metadata is an indicator of compromise.

Get-ChatGPTAutorunsIoC - Checks modules configured to run automatically (Autoruns/ASEP)

Get-ChatGPTRunningProcessesIoC - Checks running processes and their command lines

Get-ChatGPTServiceIoC - Checks service installation events (event ID 7045)

Get-ChatGPTProcessCreationIoC - Checks process creation event ID 4688 from Security log

Get-ChatGPTSysmonProcessCreationIoC - Checks process creation event ID 1 from Sysmon log

Get-ChatGPTPowerShellScriptBlockIoC - Checks PowerShell Script blocks (event ID 4104 from Microsoft-Windows-PowerShell/Operational)

Get-ChatGPTIoCScanResults - Runs all cmdlets one by one and generates reports

-apiKey <Object>
    OpenAI API key https://beta.openai.com/docs/api-reference/authentication
   
-SkipWarning [<SwitchParameter>]
    skips the confirmation regards sending data to Open AI.
    
-Path <Object>
    Path to report output folder
    
-IoCOnly [<SwitchParameter>]
    Exports only Indicators of compromise instead of all metadata
    
-ComputerName <Object>
    Remote Computer's Name
    
-Credential <Object>
    Remote Computer's credentials

huntwithchatgpt's People

Contributors

stvetro 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.