Giter Club home page Giter Club logo

oshp-stats's Introduction

OWASP Secure Headers Project statistics

Gather data

Update statistics MD file

Statistics about HTTP response security headers usage mentioned by the OWASP Secure Headers Project (OSHP).

See this issue for details.

๐Ÿ“Š See the Statistics.

Data source

MAJESTIC was used instead of the CISCO Top 1 million sites CSV file because it contain less malware domains.

# Download the MAJESTIC Top 1 million sites CSV file
$ wget http://downloads.majestic.com/majestic_million.csv
# Transform the downloaded file to an input source that use the same format 
# than the CISCO Top 1 million sites CSV file
$ cat majestic_million.csv | awk -F  "," 'NR>1 {print $1 "," $3}' > data/input.csv
$ rm majestic_million.csv

Scripts

They are all stored in the scripts folder and they are Python 3.x based.

The script oshp_headers contains the HTTP headers suggested by the OSHP project. It is a configuration material.

Visual Studio Code is used for the scripts development. A Visual Studio Code workspace file is provided for the project with recommended extensions.

Files:

Data

They are all stored in the data folder.

Files:

  • input.csv: MAJESTIC Top 1 million sites list formated as one entry ranking,domain by line.
  • data.db: SQLITE database with information about HTTP security headers usage.

Data and statistics update

โ„น๏ธ Only the first 190000 entries of the CSV datasource are used to fit the processing timeframe allowed for a github action workfows using the free tiers.

The update is scheduled in the following way via two dedicated github actions workfows:

  • The first day of every month the data database is updated.
  • The second day of every month the statistic file is updated:
    • The files input.csv, data.db and stats.md are attached to the build as artefacts. Therefore, it is possible to access to the statistics and its corresponding input data for dates in the past.

Note

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.