Giter Site home page Giter Site logo

zeek-pharm-detect's Introduction

HTTP Pharmacy Reference Detection

Purpose

This Zeek module detects the presence of pharmaceutical references on a website. Often a threat actor will compromise or deface a website (typically a CMS site such as Wordpress) to deploy links or content for pharmaceuticals. The module will also extract sample payload from the site allowing quick review by security analysts.

NOTE: This script has the potential for lots of false positives, but can be used as an example on how to detect specific strings or data in HTTP payloads. It is not intended for heavy production environments without modifications.

Installation/Upgrade

This is easiest to install through the Zeek package manager:

zkg refresh
zkg install https://github.com/nturley3/zeek-pharm-detect

If you need to upgrade the package:

zkg refresh
zkg upgrade https://github.com/nturley3/zeek-pharm-detect

See the Zeek Package Manager Docs for more information.

Configuration

No additional Zeek configuration is necessary for this package.

Generated Outputs

The script generates a new notice log:

Notice msg field sub field Description
HTTPDetectPharm::Found HTTP payload of website contains references to pharmacy info - Response: Excerpt of Payload Identifies when pharmaceutical references common to compromised websites are found in HTTP traffic.

Usage

A security analyst could examine the excerpt in the "sub" field of the generated notice log to see if the content relates to a legitimate pharmaceutical reference or not. If the excerpt looks like it displays advertisements, sales, or links to pharmaceutical, it is more likely a compromised website. This can catch legitimate references as well if an organization's websites share information about pharmaceuticals such as in the case of medical research or other health website.

Type: Alert, Threat Hunting

zeek-pharm-detect's People

Contributors

nturley3 avatar

Watchers

James Cloos 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.