Code Monkey home page Code Monkey logo

ai-cti-briefing's Introduction

AI-CTI-Briefing

Create custom CTI News Briefings using OpenAI and LangChain.

This is all work in progress and at a very early stage but it is working and I hope for some community input.

Quick Start

Clone the repo and do:

pip install -r requirements.txt

Create a .env file by copying and adding keys into the .env.example file.

Set up a CRON job that runs the script daily.

You now get AI powered news. YEAH!

NOTES:

  • The script was build using an API key from a free OpenAI trial and therefore limits the context size a lot. If you are using better models you can achieve better results, by editing the prompts and this in the main.py:
llm = OpenAI(max_tokens=2048)

How to make it better?

How does it work?

The tool currently scrapes the following feeds:

And the CVE trends from:

The tool then selects the most relevant headlines according to the following prompt:

Given the headlines: 
{headlines}

From various news sources.

Please select the 3 most interesting headlines for a daily news briefing intended for a Pentester/Red Teamer. 
Please ensure that the headlines are not covering the same topic.
List each headline you select on a new line, preceded by a hyphen and a space. For example:
- Headline 1
- Headline 2
- Headline 3

Note: If you adjust the number of headlines, append a or delete a '- Headline n' to or from the prompt.

And summarizes them using the following prompt:

Please summarize the following article:

{full_article}

in 80 words.

Focus on the key messages and actionable takeaways for somebody working as a Pentester/Red Teamer.

Include the title in the summary.

Output format should be:

Title

Summary

It bundles all the stuff together and ships the final product:

Given the full text articles:

{full_articles}

And these CVEs with descriptions

{cve_report}

Please write a news briefing for someone working in Red Teaming and Pentesting. 
From the CVEs and their summaries mention the top 3 with the most critical impact by CVE ID and say which product is affected and how.
Also provide 2 ideas for an interesting tweet for a cybersecurity Twitter account. 
The tweets should not just cite news, but provide some comment or analysis based on the overall context of todays news.

ai-cti-briefing's People

Contributors

her0marodeur avatar

Stargazers

Zachariah Mustafa avatar

Watchers

Kostas Georgiou avatar  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.