2021-04-19 10:28:49 +02:00
2021-11-24 11:08:10 +01:00
2021-04-19 10:28:49 +02:00
<!doctype html>
< html lang = "en" class = "no-js" >
< head >
< meta charset = "utf-8" >
< meta name = "viewport" content = "width=device-width,initial-scale=1" >
2021-11-24 11:08:10 +01:00
< meta http-equiv = "x-ua-compatible" content = "ie=edge" >
2021-04-19 10:28:49 +02:00
< meta name = "description" content = "MISP Modules Project" >
2021-11-24 11:08:10 +01:00
< link rel = "canonical" href = "https://www.misp-project.org/install/" >
2021-04-19 10:28:49 +02:00
< meta name = "author" content = "MISP Project" >
2021-11-24 11:08:10 +01:00
< meta name = "lang:clipboard.copy" content = "Copy to clipboard" >
< meta name = "lang:clipboard.copied" content = "Copied to clipboard" >
< meta name = "lang:search.language" content = "en" >
< meta name = "lang:search.pipeline.stopwords" content = "True" >
< meta name = "lang:search.pipeline.trimmer" content = "True" >
2021-04-19 10:28:49 +02:00
2021-11-24 11:08:10 +01:00
< meta name = "lang:search.result.none" content = "No matching documents" >
< meta name = "lang:search.result.one" content = "1 matching document" >
< meta name = "lang:search.result.other" content = "# matching documents" >
< meta name = "lang:search.tokenizer" content = "[\s\-]+" >
< link rel = "shortcut icon" href = "../img/favicon.ico" >
< meta name = "generator" content = "mkdocs-1.0.4, mkdocs-material-4.4.0" >
2021-04-19 10:28:49 +02:00
< title > Install Guides - MISP Modules Documentation< / title >
2021-11-24 11:08:10 +01:00
< link rel = "stylesheet" href = "../assets/stylesheets/application.0284f74d.css" >
< link rel = "stylesheet" href = "../assets/stylesheets/application-palette.01803549.css" >
2021-04-19 10:28:49 +02:00
2021-11-24 11:08:10 +01:00
< meta name = "theme-color" content = "" >
2021-04-19 10:28:49 +02:00
2021-11-24 11:08:10 +01:00
< script src = "../assets/javascripts/modernizr.74668098.js" > < / script >
2021-04-19 10:28:49 +02:00
2021-11-24 11:08:10 +01:00
< link href = "https://fonts.gstatic.com" rel = "preconnect" crossorigin >
< link rel = "stylesheet" href = "https://fonts.googleapis.com/css?family=Roboto:300,400,400i,700|Roboto+Mono&display=fallback" >
< style > body , input { font-family : "Roboto" , "Helvetica Neue" , Helvetica , Arial , sans-serif } code , kbd , pre { font-family : "Roboto Mono" , "Courier New" , Courier , monospace } < / style >
2021-04-19 10:28:49 +02:00
2021-11-24 11:08:10 +01:00
< link rel = "stylesheet" href = "../assets/fonts/material-icons.css" >
2021-04-19 10:28:49 +02:00
< / head >
2021-11-24 11:08:10 +01:00
< body dir = "ltr" data-md-color-primary = "white" data-md-color-accent = "blue" >
2021-10-27 22:17:30 +02:00
2021-11-24 11:08:10 +01:00
< svg class = "md-svg" >
< defs >
< svg xmlns = "http://www.w3.org/2000/svg" width = "416" height = "448" viewBox = "0 0 416 448" id = "__github" > < path fill = "currentColor" d = "M160 304q0 10-3.125 20.5t-10.75 19T128 352t-18.125-8.5-10.75-19T96 304t3.125-20.5 10.75-19T128 256t18.125 8.5 10.75 19T160 304zm160 0q0 10-3.125 20.5t-10.75 19T288 352t-18.125-8.5-10.75-19T256 304t3.125-20.5 10.75-19T288 256t18.125 8.5 10.75 19T320 304zm40 0q0-30-17.25-51T296 232q-10.25 0-48.75 5.25Q229.5 240 208 240t-39.25-2.75Q130.75 232 120 232q-29.5 0-46.75 21T56 304q0 22 8 38.375t20.25 25.75 30.5 15 35 7.375 37.25 1.75h42q20.5 0 37.25-1.75t35-7.375 30.5-15 20.25-25.75T360 304zm56-44q0 51.75-15.25 82.75-9.5 19.25-26.375 33.25t-35.25 21.5-42.5 11.875-42.875 5.5T212 416q-19.5 0-35.5-.75t-36.875-3.125-38.125-7.5-34.25-12.875T37 371.5t-21.5-28.75Q0 312 0 260q0-59.25 34-99-6.75-20.5-6.75-42.5 0-29 12.75-54.5 27 0 47.5 9.875t47.25 30.875Q171.5 96 212 96q37 0 70 8 26.25-20.5 46.75-30.25T376 64q12.75 25.5 12.75 54.5 0 21.75-6.75 42 34 40 34 99.5z" / > < / svg >
< / defs >
< / svg >
2021-10-27 22:17:30 +02:00
< input class = "md-toggle" data-md-toggle = "drawer" type = "checkbox" id = "__drawer" autocomplete = "off" >
< input class = "md-toggle" data-md-toggle = "search" type = "checkbox" id = "__search" autocomplete = "off" >
2021-11-24 11:08:10 +01:00
< label class = "md-overlay" data-md-component = "overlay" for = "__drawer" > < / label >
2021-10-27 22:17:30 +02:00
2021-11-24 11:08:10 +01:00
< a href = "#how-to-install-and-start-misp-modules-in-a-python-virtualenv" tabindex = "1" class = "md-skip" >
Skip to content
< / a >
2021-10-27 22:17:30 +02:00
2021-11-24 11:08:10 +01:00
< header class = "md-header" data-md-component = "header" >
< nav class = "md-header-nav md-grid" >
< div class = "md-flex" >
< div class = "md-flex__cell md-flex__cell--shrink" >
< a href = "https://www.misp-project.org/" title = "MISP Modules Documentation" class = "md-header-nav__button md-logo" >
< img src = "../img/misp.png" width = "24" height = "24" >
< / a >
< / div >
< div class = "md-flex__cell md-flex__cell--shrink" >
< label class = "md-icon md-icon--menu md-header-nav__button" for = "__drawer" > < / label >
< / div >
< div class = "md-flex__cell md-flex__cell--stretch" >
< div class = "md-flex__ellipsis md-header-nav__title" data-md-component = "title" >
< span class = "md-header-nav__topic" >
MISP Modules Documentation
< / span >
< span class = "md-header-nav__topic" >
Install Guides
< / span >
< / div >
< / div >
< div class = "md-flex__cell md-flex__cell--shrink" >
< label class = "md-icon md-icon--search md-header-nav__button" for = "__search" > < / label >
2021-04-19 10:28:49 +02:00
< div class = "md-search" data-md-component = "search" role = "dialog" >
< label class = "md-search__overlay" for = "__search" > < / label >
< div class = "md-search__inner" role = "search" >
< form class = "md-search__form" name = "search" >
2021-11-24 11:08:10 +01:00
< input type = "text" class = "md-search__input" name = "query" placeholder = "Search" autocapitalize = "off" autocorrect = "off" autocomplete = "off" spellcheck = "false" data-md-component = "query" data-md-state = "active" >
< label class = "md-icon md-search__icon" for = "__search" > < / label >
< button type = "reset" class = "md-icon md-search__icon" data-md-component = "reset" tabindex = "-1" >

< / button >
2021-04-19 10:28:49 +02:00
< / form >
< div class = "md-search__output" >
< div class = "md-search__scrollwrap" data-md-scrollfix >
2021-11-24 11:08:10 +01:00
< div class = "md-search-result" data-md-component = "result" >
2021-04-19 10:28:49 +02:00
< div class = "md-search-result__meta" >
2021-11-24 11:08:10 +01:00
Type to start searching
2021-04-19 10:28:49 +02:00
< / div >
< ol class = "md-search-result__list" > < / ol >
< / div >
< / div >
< / div >
< / div >
< / div >
2021-11-24 11:08:10 +01:00
< / div >
< div class = "md-flex__cell md-flex__cell--shrink" >
< div class = "md-header-nav__source" >
< a href = "https://github.com/MISP/misp-modules/" title = "Go to repository" class = "md-source" data-md-source = "github" >
< div class = "md-source__icon" >
< svg viewBox = "0 0 24 24" width = "24" height = "24" >
< use xlink:href = "#__github" width = "24" height = "24" > < / use >
< / svg >
< / div >
2021-04-19 10:28:49 +02:00
< div class = "md-source__repository" >
MISP/misp-modules
< / div >
< / a >
2021-11-24 11:08:10 +01:00
< / div >
< / div >
< / div >
2021-04-19 10:28:49 +02:00
< / nav >
< / header >
2021-11-24 11:08:10 +01:00
< div class = "md-container" >
2021-04-19 10:28:49 +02:00
2021-10-27 22:17:30 +02:00
2021-04-19 10:28:49 +02:00
2021-11-24 11:08:10 +01:00
< main class = "md-main" >
< div class = "md-main__inner md-grid" data-md-component = "container" >
2021-04-19 10:28:49 +02:00
2021-11-24 11:08:10 +01:00
< div class = "md-sidebar md-sidebar--primary" data-md-component = "navigation" >
2021-04-19 10:28:49 +02:00
< div class = "md-sidebar__scrollwrap" >
< div class = "md-sidebar__inner" >
2021-11-24 11:08:10 +01:00
< nav class = "md-nav md-nav--primary" data-md-level = "0" >
< label class = "md-nav__title md-nav__title--site" for = "__drawer" >
< a href = "https://www.misp-project.org/" title = "MISP Modules Documentation" class = "md-nav__button md-logo" >
< img src = "../img/misp.png" width = "48" height = "48" >
2021-04-19 10:28:49 +02:00
< / a >
MISP Modules Documentation
< / label >
< div class = "md-nav__source" >
2021-11-24 11:08:10 +01:00
< a href = "https://github.com/MISP/misp-modules/" title = "Go to repository" class = "md-source" data-md-source = "github" >
< div class = "md-source__icon" >
< svg viewBox = "0 0 24 24" width = "24" height = "24" >
< use xlink:href = "#__github" width = "24" height = "24" > < / use >
< / svg >
< / div >
2021-04-19 10:28:49 +02:00
< div class = "md-source__repository" >
MISP/misp-modules
< / div >
< / a >
< / div >
< ul class = "md-nav__list" data-md-scrollfix >
2021-11-24 11:08:10 +01:00
< li class = "md-nav__item" >
< a href = ".." title = "Home" class = "md-nav__link" >
Home
< / a >
< / li >
2021-04-19 10:28:49 +02:00
2021-11-24 11:08:10 +01:00
< li class = "md-nav__item md-nav__item--nested" >
2021-04-19 10:28:49 +02:00
2021-11-24 11:08:10 +01:00
< input class = "md-toggle md-nav__toggle" data-md-toggle = "nav-2" type = "checkbox" id = "nav-2" >
< label class = "md-nav__link" for = "nav-2" >
Modules
< / label >
< nav class = "md-nav" data-md-component = "collapsible" data-md-level = "1" >
< label class = "md-nav__title" for = "nav-2" >
Modules
< / label >
< ul class = "md-nav__list" data-md-scrollfix >
2021-04-19 10:28:49 +02:00
2021-11-24 11:08:10 +01:00
< li class = "md-nav__item" >
< a href = "../expansion/" title = "Expansion Modules" class = "md-nav__link" >
Expansion Modules
< / a >
< / li >
2021-04-19 10:28:49 +02:00
2021-11-24 11:08:10 +01:00
< li class = "md-nav__item" >
< a href = "../export_mod/" title = "Export Modules" class = "md-nav__link" >
Export Modules
< / a >
< / li >
2021-10-27 22:17:30 +02:00
2021-11-24 11:08:10 +01:00
< li class = "md-nav__item" >
< a href = "../import_mod/" title = "Import Modules" class = "md-nav__link" >
Import Modules
< / a >
< / li >
< / ul >
< / nav >
< / li >
2021-04-19 10:28:49 +02:00
2021-11-24 11:08:10 +01:00
< li class = "md-nav__item md-nav__item--active" >
2021-04-19 10:28:49 +02:00
2021-11-24 11:08:10 +01:00
< input class = "md-toggle md-nav__toggle" data-md-toggle = "toc" type = "checkbox" id = "__toc" >
< label class = "md-nav__link md-nav__link--active" for = "__toc" >
2021-04-19 10:28:49 +02:00
Install Guides
2021-11-24 11:08:10 +01:00
< / label >
< a href = "./" title = "Install Guides" class = "md-nav__link md-nav__link--active" >
Install Guides
< / a >
2021-04-19 10:28:49 +02:00
2021-11-24 11:08:10 +01:00
< nav class = "md-nav md-nav--secondary" >
2021-04-19 10:28:49 +02:00
2021-11-24 11:08:10 +01:00
< label class = "md-nav__title" for = "__toc" > Table of contents< / label >
< ul class = "md-nav__list" data-md-scrollfix >
2021-04-19 10:28:49 +02:00
< li class = "md-nav__item" >
2021-11-24 11:08:10 +01:00
< a href = "#how-to-install-and-start-misp-modules-in-a-python-virtualenv" title = "How to install and start MISP modules (in a Python virtualenv)?" class = "md-nav__link" >
2021-04-19 10:28:49 +02:00
How to install and start MISP modules (in a Python virtualenv)?
< / a >
< / li >
< li class = "md-nav__item" >
2021-11-24 11:08:10 +01:00
< a href = "#how-to-install-and-start-misp-modules-on-rhel-based-distributions" title = "How to install and start MISP modules on RHEL-based distributions ?" class = "md-nav__link" >
2021-04-19 10:28:49 +02:00
How to install and start MISP modules on RHEL-based distributions ?
< / a >
< / li >
< li class = "md-nav__item" >
2021-11-24 11:08:10 +01:00
< a href = "#how-to-use-an-misp-modules-docker-container" title = "How to use an MISP modules Docker container" class = "md-nav__link" >
2021-04-19 10:28:49 +02:00
How to use an MISP modules Docker container
< / a >
2021-11-24 11:08:10 +01:00
< nav class = "md-nav" >
2021-04-19 10:28:49 +02:00
< ul class = "md-nav__list" >
< li class = "md-nav__item" >
2021-11-24 11:08:10 +01:00
< a href = "#docker-build" title = "Docker build" class = "md-nav__link" >
2021-04-19 10:28:49 +02:00
Docker build
< / a >
< / li >
< li class = "md-nav__item" >
2021-11-24 11:08:10 +01:00
< a href = "#docker-run" title = "Docker run" class = "md-nav__link" >
2021-04-19 10:28:49 +02:00
Docker run
< / a >
< / li >
< li class = "md-nav__item" >
2021-11-24 11:08:10 +01:00
< a href = "#docker-compose" title = "Docker-compose" class = "md-nav__link" >
2021-04-19 10:28:49 +02:00
Docker-compose
< / a >
< / li >
< / ul >
< / nav >
< / li >
< li class = "md-nav__item" >
2021-11-24 11:08:10 +01:00
< a href = "#install-misp-module-on-an-offline-instance" title = "Install misp-module on an offline instance." class = "md-nav__link" >
2021-04-19 10:28:49 +02:00
Install misp-module on an offline instance.
< / a >
< / li >
2021-11-24 11:08:10 +01:00
2021-04-19 10:28:49 +02:00
< / ul >
< / nav >
2021-11-24 11:08:10 +01:00
< / li >
2021-04-19 10:28:49 +02:00
2021-11-24 11:08:10 +01:00
< li class = "md-nav__item" >
< a href = "../contribute/" title = "Contribute" class = "md-nav__link" >
Contribute
< / a >
< / li >
2021-04-19 10:28:49 +02:00
2021-11-24 11:08:10 +01:00
< li class = "md-nav__item md-nav__item--nested" >
2021-04-19 10:28:49 +02:00
2021-11-24 11:08:10 +01:00
< input class = "md-toggle md-nav__toggle" data-md-toggle = "nav-5" type = "checkbox" id = "nav-5" >
< label class = "md-nav__link" for = "nav-5" >
About
< / label >
< nav class = "md-nav" data-md-component = "collapsible" data-md-level = "1" >
< label class = "md-nav__title" for = "nav-5" >
About
< / label >
< ul class = "md-nav__list" data-md-scrollfix >
2021-04-19 10:28:49 +02:00
2021-10-27 22:17:30 +02:00
2021-11-24 11:08:10 +01:00
< li class = "md-nav__item" >
< a href = "../license/" title = "License" class = "md-nav__link" >
License
< / a >
< / li >
< / ul >
< / nav >
< / li >
2021-04-19 10:28:49 +02:00
< / ul >
< / nav >
< / div >
< / div >
< / div >
2021-11-24 11:08:10 +01:00
< div class = "md-sidebar md-sidebar--secondary" data-md-component = "toc" >
2021-04-19 10:28:49 +02:00
< div class = "md-sidebar__scrollwrap" >
< div class = "md-sidebar__inner" >
2021-11-24 11:08:10 +01:00
< nav class = "md-nav md-nav--secondary" >
2021-04-19 10:28:49 +02:00
2021-11-24 11:08:10 +01:00
< label class = "md-nav__title" for = "__toc" > Table of contents< / label >
< ul class = "md-nav__list" data-md-scrollfix >
2021-04-19 10:28:49 +02:00
< li class = "md-nav__item" >
2021-11-24 11:08:10 +01:00
< a href = "#how-to-install-and-start-misp-modules-in-a-python-virtualenv" title = "How to install and start MISP modules (in a Python virtualenv)?" class = "md-nav__link" >
2021-04-19 10:28:49 +02:00
How to install and start MISP modules (in a Python virtualenv)?
< / a >
< / li >
< li class = "md-nav__item" >
2021-11-24 11:08:10 +01:00
< a href = "#how-to-install-and-start-misp-modules-on-rhel-based-distributions" title = "How to install and start MISP modules on RHEL-based distributions ?" class = "md-nav__link" >
2021-04-19 10:28:49 +02:00
How to install and start MISP modules on RHEL-based distributions ?
< / a >
< / li >
< li class = "md-nav__item" >
2021-11-24 11:08:10 +01:00
< a href = "#how-to-use-an-misp-modules-docker-container" title = "How to use an MISP modules Docker container" class = "md-nav__link" >
2021-04-19 10:28:49 +02:00
How to use an MISP modules Docker container
< / a >
2021-11-24 11:08:10 +01:00
< nav class = "md-nav" >
2021-04-19 10:28:49 +02:00
< ul class = "md-nav__list" >
< li class = "md-nav__item" >
2021-11-24 11:08:10 +01:00
< a href = "#docker-build" title = "Docker build" class = "md-nav__link" >
2021-04-19 10:28:49 +02:00
Docker build
< / a >
< / li >
< li class = "md-nav__item" >
2021-11-24 11:08:10 +01:00
< a href = "#docker-run" title = "Docker run" class = "md-nav__link" >
2021-04-19 10:28:49 +02:00
Docker run
< / a >
< / li >
< li class = "md-nav__item" >
2021-11-24 11:08:10 +01:00
< a href = "#docker-compose" title = "Docker-compose" class = "md-nav__link" >
2021-04-19 10:28:49 +02:00
Docker-compose
< / a >
< / li >
< / ul >
< / nav >
< / li >
< li class = "md-nav__item" >
2021-11-24 11:08:10 +01:00
< a href = "#install-misp-module-on-an-offline-instance" title = "Install misp-module on an offline instance." class = "md-nav__link" >
2021-04-19 10:28:49 +02:00
Install misp-module on an offline instance.
< / a >
< / li >
2021-11-24 11:08:10 +01:00
2021-04-19 10:28:49 +02:00
< / ul >
< / nav >
< / div >
< / div >
< / div >
2021-11-24 11:08:10 +01:00
< div class = "md-content" >
2021-04-19 10:28:49 +02:00
< article class = "md-content__inner md-typeset" >
< h1 > Install Guides< / h1 >
< h2 id = "how-to-install-and-start-misp-modules-in-a-python-virtualenv" > How to install and start MISP modules (in a Python virtualenv)?< a class = "headerlink" href = "#how-to-install-and-start-misp-modules-in-a-python-virtualenv" title = "Permanent link" > ¶ < / a > < / h2 >
2021-11-24 11:08:10 +01:00
< div class = "codehilite" > < pre > < span > < / span > < span class = "nv" > SUDO_WWW< / span > < span class = "o" > =< / span > < span class = "s2" > " sudo -u www-data" < / span >
2021-04-19 10:28:49 +02:00
sudo apt-get install -y < span class = "se" > \< / span >
git < span class = "se" > \< / span >
libpq5 < span class = "se" > \< / span >
libjpeg-dev < span class = "se" > \< / span >
tesseract-ocr < span class = "se" > \< / span >
libpoppler-cpp-dev < span class = "se" > \< / span >
imagemagick virtualenv < span class = "se" > \< / span >
libopencv-dev < span class = "se" > \< / span >
zbar-tools < span class = "se" > \< / span >
libzbar0 < span class = "se" > \< / span >
libzbar-dev < span class = "se" > \< / span >
2021-10-27 22:17:30 +02:00
libfuzzy-dev < span class = "se" > \< / span >
libcaca-dev
2021-04-19 10:28:49 +02:00
< span class = "c1" > # BEGIN with virtualenv: < / span >
< span class = "nv" > $SUDO_WWW< / span > virtualenv -p python3 /var/www/MISP/venv
< span class = "c1" > # END with virtualenv< / span >
< span class = "nb" > cd< / span > /usr/local/src/
< span class = "c1" > # Ideally you add your user to the staff group and make /usr/local/src group writeable, below follows an example with user misp< / span >
sudo adduser misp staff
sudo chmod < span class = "m" > 2775< / span > /usr/local/src
sudo chown root:staff /usr/local/src
git clone https://github.com/MISP/misp-modules.git
git clone git://github.com/stricaud/faup.git faup
git clone git://github.com/stricaud/gtcaca.git gtcaca
< span class = "c1" > # Install gtcaca/faup< / span >
< span class = "nb" > cd< / span > gtcaca
mkdir -p build
< span class = "nb" > cd< / span > build
cmake .. < span class = "o" > & & < / span > make
sudo make install
< span class = "nb" > cd< / span > ../../faup
mkdir -p build
< span class = "nb" > cd< / span > build
cmake .. < span class = "o" > & & < / span > make
sudo make install
sudo ldconfig
< span class = "nb" > cd< / span > ../../misp-modules
< span class = "c1" > # BEGIN with virtualenv: < / span >
< span class = "nv" > $SUDO_WWW< / span > /var/www/MISP/venv/bin/pip install -I -r REQUIREMENTS
< span class = "nv" > $SUDO_WWW< / span > /var/www/MISP/venv/bin/pip install .
< span class = "c1" > # END with virtualenv< / span >
< span class = "c1" > # BEGIN without virtualenv: < / span >
sudo pip install -I -r REQUIREMENTS
sudo pip install .
< span class = "c1" > # END without virtualenv< / span >
< span class = "c1" > # Start misp-modules as a service< / span >
sudo cp etc/systemd/system/misp-modules.service /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl < span class = "nb" > enable< / span > --now misp-modules
/var/www/MISP/venv/bin/misp-modules -l < span class = "m" > 127< / span > .0.0.1 -s < span class = "p" > & < / span > < span class = "c1" > #to start the modules< / span >
2021-11-24 11:08:10 +01:00
< / pre > < / div >
2021-04-19 10:28:49 +02:00
< h2 id = "how-to-install-and-start-misp-modules-on-rhel-based-distributions" > How to install and start MISP modules on RHEL-based distributions ?< a class = "headerlink" href = "#how-to-install-and-start-misp-modules-on-rhel-based-distributions" title = "Permanent link" > ¶ < / a > < / h2 >
< p > As of this writing, the official RHEL repositories only contain Ruby 2.0.0 and Ruby 2.1 or higher is required. As such, this guide installs Ruby 2.2 from the SCL repository.< / p >
2021-11-24 11:08:10 +01:00
< div class = "codehilite" > < pre > < span > < / span > < span class = "nv" > SUDO_WWW< / span > < span class = "o" > =< / span > < span class = "s2" > " sudo -u apache" < / span >
2021-04-19 10:28:49 +02:00
sudo yum install < span class = "se" > \< / span >
rh-ruby22 < span class = "se" > \< / span >
openjpeg-devel < span class = "se" > \< / span >
rubygem-rouge < span class = "se" > \< / span >
rubygem-asciidoctor < span class = "se" > \< / span >
zbar-devel < span class = "se" > \< / span >
opencv-devel < span class = "se" > \< / span >
gcc-c++ < span class = "se" > \< / span >
pkgconfig < span class = "se" > \< / span >
poppler-cpp-devel < span class = "se" > \< / span >
python-devel < span class = "se" > \< / span >
redhat-rpm-config
< span class = "nb" > cd< / span > /usr/local/src/
sudo git clone https://github.com/MISP/misp-modules.git
< span class = "nb" > cd< / span > misp-modules
< span class = "nv" > $SUDO_WWW< / span > /usr/bin/scl < span class = "nb" > enable< / span > rh-python36 < span class = "s2" > " virtualenv -p python3 /var/www/MISP/venv" < / span >
< span class = "nv" > $SUDO_WWW< / span > /var/www/MISP/venv/bin/pip install -U -I -r REQUIREMENTS
< span class = "nv" > $SUDO_WWW< / span > /var/www/MISP/venv/bin/pip install -U .
2021-11-24 11:08:10 +01:00
< / pre > < / div >
2021-04-19 10:28:49 +02:00
< p > Create the service file /etc/systemd/system/misp-modules.service :< / p >
2021-11-24 11:08:10 +01:00
< div class = "codehilite" > < pre > < span > < / span > < span class = "nb" > echo< / span > < span class = "s2" > " [Unit]< / span >
2021-04-19 10:28:49 +02:00
< span class = "s2" > Description=MISP' s modules< / span >
< span class = "s2" > After=misp-workers.service< / span >
< span class = "s2" > [Service]< / span >
< span class = "s2" > Type=simple< / span >
< span class = "s2" > User=apache< / span >
< span class = "s2" > Group=apache< / span >
< span class = "s2" > ExecStart=/usr/bin/scl enable rh-python36 rh-ruby22 ' /var/www/MISP/venv/bin/misp-modules – l 127.0.0.1 – s' < / span >
< span class = "s2" > Restart=always< / span >
< span class = "s2" > RestartSec=10< / span >
< span class = "s2" > [Install]< / span >
< span class = "s2" > WantedBy=multi-user.target" < / span > < span class = "p" > |< / span > sudo tee /etc/systemd/system/misp-modules.service
2021-11-24 11:08:10 +01:00
< / pre > < / div >
2021-04-19 10:28:49 +02:00
< p > The After=misp-workers.service must be changed or removed if you have not created a misp-workers service. Then, enable the misp-modules service and start it:< / p >
2021-11-24 11:08:10 +01:00
< div class = "codehilite" > < pre > < span > < / span > systemctl daemon-reload
2021-04-19 10:28:49 +02:00
systemctl < span class = "nb" > enable< / span > --now misp-modules
2021-11-24 11:08:10 +01:00
< / pre > < / div >
2021-04-19 10:28:49 +02:00
< h2 id = "how-to-use-an-misp-modules-docker-container" > How to use an MISP modules Docker container< a class = "headerlink" href = "#how-to-use-an-misp-modules-docker-container" title = "Permanent link" > ¶ < / a > < / h2 >
< h3 id = "docker-build" > Docker build< a class = "headerlink" href = "#docker-build" title = "Permanent link" > ¶ < / a > < / h3 >
2021-11-24 11:08:10 +01:00
< div class = "codehilite" > < pre > < span > < / span > docker build -t misp-modules < span class = "se" > \< / span >
2021-04-19 10:28:49 +02:00
--build-arg < span class = "nv" > BUILD_DATE< / span > < span class = "o" > =< / span > < span class = "k" > $(< / span > date -u +< span class = "s2" > " %Y-%m-%d" < / span > < span class = "k" > )< / span > < span class = "se" > \< / span >
docker/
2021-11-24 11:08:10 +01:00
< / pre > < / div >
2021-04-19 10:28:49 +02:00
< h3 id = "docker-run" > Docker run< a class = "headerlink" href = "#docker-run" title = "Permanent link" > ¶ < / a > < / h3 >
2021-11-24 11:08:10 +01:00
< div class = "codehilite" > < pre > < span > < / span > < span class = "c1" > # Start Redis< / span >
2021-04-19 10:28:49 +02:00
docker run --rm -d --name< span class = "o" > =< / span > misp-redis redis:alpine
< span class = "c1" > # Start MISP-modules< / span >
docker run < span class = "se" > \< / span >
--rm -d --name< span class = "o" > =< / span > misp-modules < span class = "se" > \< / span >
-e < span class = "nv" > REDIS_BACKEND< / span > < span class = "o" > =< / span > misp-redis < span class = "se" > \< / span >
-e < span class = "nv" > REDIS_PORT< / span > < span class = "o" > =< / span > < span class = "s2" > " 6379" < / span > < span class = "se" > \< / span >
-e < span class = "nv" > REDIS_PW< / span > < span class = "o" > =< / span > < span class = "s2" > " " < / span > < span class = "se" > \< / span >
-e < span class = "nv" > REDIS_DATABASE< / span > < span class = "o" > =< / span > < span class = "s2" > " 245" < / span > < span class = "se" > \< / span >
-e < span class = "nv" > MISP_MODULES_DEBUG< / span > < span class = "o" > =< / span > < span class = "s2" > " false" < / span > < span class = "se" > \< / span >
dcso/misp-dockerized-misp-modules
2021-11-24 11:08:10 +01:00
< / pre > < / div >
2021-04-19 10:28:49 +02:00
< h3 id = "docker-compose" > Docker-compose< a class = "headerlink" href = "#docker-compose" title = "Permanent link" > ¶ < / a > < / h3 >
2021-11-24 11:08:10 +01:00
< div class = "codehilite" > < pre > < span > < / span > services:
2021-04-19 10:28:49 +02:00
misp-modules:
# https://hub.docker.com/r/dcso/misp-dockerized-misp-modules
image: dcso/misp-dockerized-misp-modules:3
# Local image:
#image: misp-modules
#build:
# context: docker/
environment:
# Redis
REDIS_BACKEND: misp-redis
REDIS_PORT: " 6379"
REDIS_DATABASE: " 245"
# System PROXY (OPTIONAL)
http_proxy:
https_proxy:
no_proxy: 0.0.0.0
# Timezone (OPTIONAL)
TZ: Europe/Berlin
# MISP-Modules (OPTIONAL)
MISP_MODULES_DEBUG: " false"
# Logging options (OPTIONAL)
LOG_SYSLOG_ENABLED: " no"
misp-redis:
# https://hub.docker.com/_/redis or alternative https://hub.docker.com/r/dcso/misp-dockerized-redis/
image: redis:alpine
2021-11-24 11:08:10 +01:00
< / pre > < / div >
2021-04-19 10:28:49 +02:00
< h2 id = "install-misp-module-on-an-offline-instance" > Install misp-module on an offline instance.< a class = "headerlink" href = "#install-misp-module-on-an-offline-instance" title = "Permanent link" > ¶ < / a > < / h2 >
< p > First, you need to grab all necessary packages for example like this :< / p >
< p > Use pip wheel to create an archive
2021-11-24 11:08:10 +01:00
< div class = "codehilite" > < pre > < span > < / span > mkdir misp-modules-offline
2021-04-19 10:28:49 +02:00
pip3 wheel -r REQUIREMENTS shodan --wheel-dir=./misp-modules-offline
tar -cjvf misp-module-bundeled.tar.bz2 ./misp-modules-offline/*
2021-11-24 11:08:10 +01:00
< / pre > < / div >
2021-04-19 10:28:49 +02:00
On offline machine :
2021-11-24 11:08:10 +01:00
< div class = "codehilite" > < pre > < span > < / span > mkdir misp-modules-bundle
2021-04-19 10:28:49 +02:00
tar xvf misp-module-bundeled.tar.bz2 -C misp-modules-bundle
cd misp-modules-bundle
ls -1|while read line; do sudo pip3 install --force-reinstall --ignore-installed --upgrade --no-index --no-deps ${line};done
2021-11-24 11:08:10 +01:00
< / pre > < / div >
2021-04-19 10:28:49 +02:00
Next you can follow standard install procedure.< / p >
2021-11-24 11:08:10 +01:00
2021-04-19 10:28:49 +02:00
< / article >
< / div >
< / div >
< / main >
< footer class = "md-footer" >
2021-11-24 11:08:10 +01:00
< div class = "md-footer-nav" >
< nav class = "md-footer-nav__inner md-grid" >
2021-04-19 10:28:49 +02:00
2021-11-24 11:08:10 +01:00
< a href = "../import_mod/" title = "Import Modules" class = "md-flex md-footer-nav__link md-footer-nav__link--prev" rel = "prev" >
< div class = "md-flex__cell md-flex__cell--shrink" >
< i class = "md-icon md-icon--arrow-back md-footer-nav__button" > < / i >
< / div >
< div class = "md-flex__cell md-flex__cell--stretch md-footer-nav__title" >
< span class = "md-flex__ellipsis" >
< span class = "md-footer-nav__direction" >
Previous
< / span >
Import Modules
2021-04-19 10:28:49 +02:00
< / span >
< / div >
2021-11-24 11:08:10 +01:00
< / a >
2021-04-19 10:28:49 +02:00
2021-11-24 11:08:10 +01:00
< a href = "../contribute/" title = "Contribute" class = "md-flex md-footer-nav__link md-footer-nav__link--next" rel = "next" >
< div class = "md-flex__cell md-flex__cell--stretch md-footer-nav__title" >
< span class = "md-flex__ellipsis" >
< span class = "md-footer-nav__direction" >
Next
< / span >
Contribute
2021-04-19 10:28:49 +02:00
< / span >
< / div >
2021-11-24 11:08:10 +01:00
< div class = "md-flex__cell md-flex__cell--shrink" >
< i class = "md-icon md-icon--arrow-forward md-footer-nav__button" > < / i >
< / div >
< / a >
< / nav >
< / div >
2021-04-19 10:28:49 +02:00
< div class = "md-footer-meta md-typeset" >
< div class = "md-footer-meta__inner md-grid" >
< div class = "md-footer-copyright" >
< div class = "md-footer-copyright__highlight" >
Copyright © 2019-2021 MISP Project
< / div >
2021-11-24 11:08:10 +01:00
powered by
< a href = "https://www.mkdocs.org" > MkDocs< / a >
and
< a href = "https://squidfunk.github.io/mkdocs-material/" >
Material for MkDocs< / a >
2021-04-19 10:28:49 +02:00
< / div >
2021-10-27 22:20:00 +02:00
< div class = "md-footer-social" >
2021-11-24 11:08:10 +01:00
< link rel = "stylesheet" href = "../assets/fonts/font-awesome.css" >
2021-10-27 22:20:00 +02:00
2021-11-24 11:08:10 +01:00
< a href = "https://twitter.com/MISPProject" class = "md-footer-social__link fa fa-" > < / a >
2021-10-27 22:22:29 +02:00
2021-11-24 11:08:10 +01:00
< a href = "https://github.com/MISP" class = "md-footer-social__link fa fa-" > < / a >
2021-10-27 22:20:00 +02:00
< / div >
2021-04-19 10:28:49 +02:00
< / div >
< / div >
< / footer >
< / div >
2021-11-24 11:08:10 +01:00
< script src = "../assets/javascripts/application.245445c6.js" > < / script >
< script > app . initialize ( { version : "1.0.4" , url : { base : ".." } } ) < / script >
2021-04-19 10:28:49 +02:00
< / body >
< / html >