GithubHelp home page GithubHelp logo

dolanjs / ossec Goto Github PK

View Code? Open in Web Editor NEW

This project forked from freedomofpress/ossec

0.0 1.0 0.0 119 KB

This repository contains all of the code and documentation related to the generic OSSEC packages maintained by the Freedom of the Press Foundation for all SecureDrop instances.

License: GNU General Public License v2.0

Shell 100.00%

ossec's Introduction

OSSEC for Ubuntu

OSSEC server and agent packages for Ubuntu

This repository contains all of the code and documentation related to the generic OSSEC packages maintained by the Freedom of the Press Foundation for all SecureDrop instances.

Verifying the packages

OSSEC doesn't provide a sha256 checksum for their download. They do provide a MD5 and SHA1. OSSEC also doesn't sign their checksum file but the download page is over HTTPS now.

Ansible only has options to check a sha256 or md5 checksum not a sha1 checksum.

Derive the OSSEC archive sha256 checksum

  • Download OSSEC archive and checksum file to your host.
Latest Stable Release (2.8.2)
Server/Agent 2.8.2 โ€“ Linux/BSD
  • Verify sha1 and md5 checksum
  • Generate the sha256 checksum of the verified download

Update vars in the ansible playbook

The vars for building the deb packages are in ansible/build-deb-pkgs.yml

Update

  • version is correct upstream OSSEC version
  • download_checksum_sha256 is the upstream OSSEC downloads sha256 checksum derived earlier.
  • download_checksum_md5 is the value from the checksum file on the OSSEC download page.

Verify:

  • The download url did not change. If it did update download_url
  • The naming convention for the file name in the url did not change. If it did update download_name
  • The naming convention for the OSSEC archive did not change. If it did update archive_name

Update version in control files

The ossec-server and ossec-agent control files and changelog are not currently managed by ansible. They currently require maually changing for each release. This will be fixed in a future release.

Versions need to be updated in

  • ossec-agent/DEBIAN/control
  • ossec-server/DEBIAN/control

The changelogs need to be updated:

  • ossec-server/usr/share/doc/ossec-server/changelog.Debian
  • ossec-agent/usr/share/doc/ossec-agent/changelog.Debian

Example

For OSSEC version 2.8.2 updated and verified these values in ansible/build-deb-pkgs.yml

    version: "2.8.2"
    download_url: "https://github.com/ossec/ossec-hids/archive"
    download_name: "{{ version }}.tar.gz"
    download_checksum_sha256: "61e0892175a79fe119c8bab886cd41fcc3be9b84526600b06c18fa178a59cb34"
    download_checksum_md5: "3036d5babc96216135759338466e1f79"
    archive_name: "ossec-hids-{{ download_name }}"

Use Vagrant to build the deb packages

  • First time, run vagrant up.

  • To rebuild packages you can just run vagrant provision.

The ossec-server-VERSION-amd64.deb and ossec-agent-VERSION-amd64.deb packages will be in the ./build directory.

These package will need to be moved to the securedrop repo's ./build directory for testing in that environment.

ossec's People

Contributors

dolanjs avatar garrettr 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.