-
Notifications
You must be signed in to change notification settings - Fork 930
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Samuel Hassine
committed
Jun 23, 2019
1 parent
d822f51
commit c0b6ea6
Showing
42 changed files
with
890 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,11 @@ jobs: | |
- image: circleci/node:11-stretch | ||
steps: | ||
- checkout | ||
- run: | ||
name: "Pull Submodules" | ||
command: | | ||
git submodule init | ||
git submodule update --remote | ||
- run: | ||
working_directory: ~/opencti/opencti-front | ||
command: yarn install | ||
|
@@ -66,6 +71,7 @@ jobs: | |
- run: git remote add opencti ssh://[email protected]:/~/git-OLOszi5F.git && git push opencti master | ||
- run: mkdir release | ||
- run: cp -a opencti-graphql release/opencti | ||
- run: cp -a opencti-integration release/opencti/integration | ||
- run: cp -a opencti-worker release/opencti/worker | ||
- run: | ||
working_directory: ~/opencti/release | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,17 @@ | ||
![](docs/logo.png) | ||
--- | ||
[![Website](https://img.shields.io/badge/website-opencti.io-blue.svg)](https://www.opencti.io) | ||
[![CircleCI](https://circleci.com/gh/LuatixHQ/opencti.svg?style=shield&circle-token=71bf657a43ec48f8433ece2f4879eadaf920d79a)](https://circleci.com/gh/LuatixHQ/opencti) | ||
[![GitHub release](https://img.shields.io/github/release/LuatixHQ/opencti.svg)](https://github.com/LuatixHQ/opencti/releases/latest) | ||
[![CircleCI](https://circleci.com/gh/OpenCTI-Platform/opencti.svg?style=shield&circle-token=71bf657a43ec48f8433ece2f4879eadaf920d79a)](https://circleci.com/gh/OpenCTI-Platform/opencti) | ||
[![GitHub release](https://img.shields.io/github/release/OpenCTI-Platform/opencti.svg)](https://github.com/OpenCTI-Platform/opencti/releases/latest) | ||
[![Slack Status](https://slack.luatix.org/badge.svg)](https://slack.luatix.org) | ||
|
||
OpenCTI is an open source platform allowing organizations to manage their cyber threat intelligence knowledge, investigations and indicators of compromise. OpenCTI can be integrated with other applications such as [Maltego](https://www.paterva.com/web7/buy/maltego-clients/maltego-ce.php), [MISP](https://www.misp-project.org/), [CORTEX](https://github.com/TheHive-Project/Cortex) and many other STIX2 compliant products. It has been designed as a modern web application including a GraphQL API and an UX oriented frontend. | ||
|
||
![Screenshot](docs/screenshot.png "OpenCTI") | ||
|
||
## Releases download | ||
|
||
The releases are available on the [Github releases page](https://github.com/LuatixHQ/opencti/releases). You can also access to the [rolling release package](https://releases.opencti.io) generated from the mater branch of the repository. | ||
The releases are available on the [Github releases page](https://github.com/OpenCTI-Platform/opencti/releases). You can also access to the [rolling release package](https://releases.opencti.io) generated from the mater branch of the repository. | ||
|
||
## Installation | ||
|
||
|
@@ -34,12 +35,12 @@ The [Grakn](https://github.com/graknlabs/grakn) knowledge graph database provide | |
|
||
### Status & bugs | ||
|
||
Currently OpenCTI is under heavy development, if you wish to report bugs or ask for new features, you can directly use the [Github issues module](https://github.com/LuatixHQ/opencti/issues). | ||
Currently OpenCTI is under heavy development, if you wish to report bugs or ask for new features, you can directly use the [Github issues module](https://github.com/OpenCTI-Platform/opencti/issues). | ||
|
||
### Discussion | ||
|
||
If you need support or you wish to engage a discussion about the OpenCTI platform, feel free to join us on our [Slack channel](https://slack.luatix.org). You can also send us an email to [email protected]. | ||
|
||
### About | ||
## About | ||
|
||
OpenCTI is a product powered by the collaboration of the [French national cybersecurity agency (ANSSI)](https://ssi.gouv.fr), the [CERT-EU](https://cert.europa.eu) and the [Luatix](https://www.luatix.org) non-profit organization. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Use the official Docker Hub Ubuntu 18.04 base image | ||
FROM ubuntu:18.04 | ||
|
||
# Update the base image | ||
RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get -y upgrade && apt-get -y dist-upgrade | ||
|
||
# Setup install environment and OpenCTI dependencies | ||
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install python3 python3-pip curl sudo rsyslog wget netcat locales | ||
|
||
# Download archive | ||
RUN wget -O /opt/opencti.tar.gz https://releases.opencti.io/opencti-20190623.tar.gz | ||
RUN cd /opt && tar xvfz opencti.tar.gz | ||
|
||
# Set the locale | ||
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && locale-gen | ||
ENV LANG en_US.UTF-8 | ||
ENV LANGUAGE en_US:en | ||
ENV LC_ALL en_US.UTF-8 | ||
|
||
# Prepare configuration | ||
RUN cd /opt/opencti/integration && ln -s /opt/opencti/shared_config/config.yml . | ||
|
||
# Expose and entrypoint | ||
COPY entrypoint.sh / | ||
RUN chmod +x /entrypoint.sh | ||
ENTRYPOINT ["/entrypoint.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/bin/sh | ||
|
||
# Start log | ||
/etc/init.d/rsyslog start | ||
|
||
# Install Python modules | ||
cd /opt/opencti/integration | ||
sudo -H -u ${RUN_USER} pip3 install -r requirements.txt | ||
|
||
# Install Python modules of each connectors | ||
sudo -H -u ${RUN_USER} find connectors -name requirements.txt -exec pip3 install -r {} \; | ||
|
||
# Check configuration | ||
while [ ! -f /opt/opencti/shared_config/token ] | ||
do | ||
echo "Waiting for token in shared config..." | ||
sleep 2 | ||
done | ||
|
||
# Replace the token in the configuration | ||
sed -i -e "s/REPLACE_API_KEY/$(cat /opt/opencti/shared_config/token)/g" /opt/opencti/integration/config.yml.sample | ||
cp /opt/opencti/integration/config.yml.sample /opt/opencti/shared_config/config.yml | ||
|
||
# Chown the application | ||
chown -R ${RUN_USER} /opt/opencti | ||
|
||
# Start | ||
cd /opt/opencti/integration | ||
sudo -H -u ${RUN_USER} python3 connectors_scheduler.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.