Giter Site home page Giter Site logo

smbfp's Introduction

SMBFP SMB Fingerprinting Zeek package

Purpose

This package will generate a fingerprint based upon observed values from the SMB negotation process, in a similar fashion to JA3 for TLS. This may be used to generate alerts for known-bad fingerprints (blacklist), as well as identify abnormal SMB clients (whitelist).

WARNING Fingerprints generated may change in a future release. At this time, this package is still incredibly bleeding edge, and I continue to refine which fields are used to generate the fingerprint.

Fields used to generate fingerprint

In order to fingerprint SMB clients, I had to determine which fields could possibly change based on the client software used.

SMB1 Fields used:

  • dialects - Strings that declare what versions of SMB the client supports
  • max_buffer_len - Maxiumum buffer size for SMB messages supported by the client
  • max_mpx_count - Maximum amount of open SMB commands the client supports at a single time (mpx = multiplex)
  • native_os - A string that describes the OS of the client; Similar to an HTTP User Agent.
  • native_lanman - The client's native LAN Manager type; Essentially the same as above
  • primary_domain - The primary domain as specified by the client; rarely set
  • capabilities.unicode - Whether or not the client supports unicode; Interesting because Windows clients always do
  • capabilities.level_2_oplocks - Whether or not the client supports read-only opportunistic locking; default on in Windows since XP

SMB2 Fields used:

  • dialects - Integers that declare what versions of SMB the client supports

TODO

  • Submit patch to Zeek to include capabilities in smb2_negotiate_request event

smbfp's People

Contributors

micrictor avatar

Stargazers

 avatar Jérôme Plumecoq avatar  avatar  avatar Irvin Homem avatar  avatar  avatar Matthias Vallentin avatar David Szili avatar Magno Logan avatar Alexander Knorr avatar Drew avatar Derek Abdine avatar  avatar muuk avatar  avatar suyash mishra avatar  avatar  avatar Javierop avatar Furkan ÇALIŞKAN avatar Andrew Morris avatar Adel Karimi avatar vishnummv avatar  avatar  avatar

Watchers

Matthias Vallentin avatar  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.