Coder Social home page Coder Social logo

pect0ral / mcp_qradar Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 7 KB

Conversion Scripts to ingest McAfee Cloud Proxy logs into IBM Qradar. This requires pulling the websaas CSV files from the McAfee CSR Server to be converted into an ingestible format

License: MIT License

Shell 26.28% Python 73.72%
qradar qradar-connector mcafee mcafee-web-gateway mcafee-csr-server mcafee-cloud-proxy ibm-qradar conversion-scripts mcp-qradar websaas-csv-files

mcp_qradar's Introduction

MCP_Qradar

Conversion Scripts to ingest McAfee Cloud Proxy logs into IBM Qradar. This requires pulling the websaas CSV files from the McAfee CSR Server to be converted into an ingestible format

This is an initial push of this, it is confirmed working but you need to know what you're looking for. There's comments in line in the scripts below.

The Overview

There's two scripts, a python script and a shell script. The shell script is used as a cron / scheduled task (say, create a cron to run it every 15 minutes). It look for new files that came in, dispatch them to conversion jobs and output a file for each into an output directory for retrieval by Qradar.

The python script is a threaded conversion script that pulls in the WebSaas CSV files from McAfee CSR server which report all of the connection log data from McAfee Cloud Proxy. The conversion makes them a valid log stream that, on the Qradar Side, can be ingested by a log source configured with the McAfee Web Gateway DSM Type upsing a File protocol, such as SFTP.

Details

Architecture

The scripts, as-is, assume you have a linux host with a local user, mcafee who lives in /home/mcafee. This linux host and user act as a middle man between McAfee CSR and Qradar. That user's home directory should contain 4 additional subdirectories, in, out and tmp.

  • Incoming files go into in
  • Outgoing files go into out
  • Files being converted go into tmp
  • Our scripts go into a directory named bin

The Windows CSR Server will need to push the CSV logs into this Linux Server, targetting our in directory ( eg. /home/mcafee/in ) listed above. You can use Posh-SSH for this, See: https://www.powershellgallery.com/packages/Posh-SSH/2.1

A cron on the linux server for every 15 minutes should be configured to run the shell script contained here from the user's bin directory (eg. /home/mcafee/bin/ )

All files that are being converted will temporarily be put into the tmp directory while the conversion is happening, and the finalized converted file will be moved to the out directory.

On the Qradar Side, setup a log source using the McAfee Web Gateway DSM, with SFTP File Protocol and point it to your /home/mcafee/out directory looking for *\.log

Testing

I suggest reading the heavily commented scripts to understand their mechanics and test them. You can run the python script directly (python 2.7 for now)

Make hwatever edits you want to suit it to your environment.

mcp_qradar's People

Contributors

pect0ral avatar

Stargazers

 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.