Skip to content

Commit

Permalink
[all] OpenEX to OpenBAS
Browse files Browse the repository at this point in the history
  • Loading branch information
RomuDeuxfois authored Mar 1, 2024
1 parent 7546e5d commit b80d7f7
Show file tree
Hide file tree
Showing 1,097 changed files with 2,303 additions and 2,294 deletions.
16 changes: 8 additions & 8 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
*__generated__*

# Frontend
openex-front/config/development.json
openex-front/.DS_Store
openex-front/.env.local
openex-front/.env.development.local
openex-front/.env.test.local
openex-front/.env.production.local
openbas-front/config/development.json
openbas-front/.DS_Store
openbas-front/.env.local
openbas-front/.env.development.local
openbas-front/.env.test.local
openbas-front/.env.production.local

# API
openex-api/coverage
openex-api/logs
openbas-api/coverage
openbas-api/logs
72 changes: 36 additions & 36 deletions .drone.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
kind: pipeline
type: docker
name: openex-tests-pull-request
name: openbas-tests-pull-request
concurrency: {
limit: 2
}
Expand All @@ -17,23 +17,23 @@ steps:
- name: api-tests
image: maven:3.9.6-eclipse-temurin-21
environment:
SPRING_DATASOURCE_URL: jdbc:postgresql://pgsql:5432/openex
SPRING_DATASOURCE_URL: jdbc:postgresql://pgsql:5432/openbas
MINIO_ENDPOINT: minio
MINIO_PORT: 9000
commands:
- mvn install -DskipTests
- cd openex-api
- cd openbas-api
- mvn test
- cd ../openex-framework
- cd ../openbas-framework
- mvn test
- cd ../openex-injectors
- cd ../openbas-injectors
- mvn test
depends_on:
- submodules
- name: frontend-tests
image: node:20.11.0-alpine3.18
commands:
- cd openex-front
- cd openbas-front
- yarn install
- yarn build
- yarn check-ts
Expand All @@ -51,15 +51,15 @@ services:
- name: pgsql
image: postgres:16-alpine
environment:
POSTGRES_USER: openex
POSTGRES_PASSWORD: openex
POSTGRES_DB: openex
POSTGRES_USER: openbas
POSTGRES_PASSWORD: openbas
POSTGRES_DB: openbas

---

kind: pipeline
type: docker
name: openex-e2e-tests-pull-request
name: openbas-e2e-tests-pull-request
concurrency: {
limit: 2
}
Expand All @@ -75,7 +75,7 @@ steps:
- apt update
- apt -y install netcat-traditional
- while ! nc -z app-start 8080 ; do sleep 1 ; done
- cd openex-front
- cd openbas-front
- yarn install
- yarn playwright install --with-deps chromium
- APP_URL=http://app-start:8080 yarn test:e2e
Expand All @@ -90,22 +90,22 @@ services:
- name: pgsql
image: postgres:16-alpine
environment:
POSTGRES_USER: openex
POSTGRES_PASSWORD: openex
POSTGRES_DB: openex
POSTGRES_USER: openbas
POSTGRES_PASSWORD: openbas
POSTGRES_DB: openbas
- name: app-start
image: maven:3.9.6-eclipse-temurin-21
environment:
SPRING_DATASOURCE_URL: jdbc:postgresql://pgsql:5432/openex
SPRING_DATASOURCE_USERNAME: openex
SPRING_DATASOURCE_PASSWORD: openex
SPRING_DATASOURCE_URL: jdbc:postgresql://pgsql:5432/openbas
SPRING_DATASOURCE_USERNAME: openbas
SPRING_DATASOURCE_PASSWORD: openbas
MINIO_ENDPOINT: minio
MINIO_PORT: 9000
MINIO_ACCESS_KEY: minioadmin
MINIO_ACCESS_SECRET: minioadmin
OPENEX_ADMIN_EMAIL: admin@openex.io
OPENEX_ADMIN_PASSWORD: admin
OPENEX_ADMIN_TOKEN: 0d17ce9a-f3a8-4c6d-9721-c98dc3dc023f
OPENBAS_ADMIN_EMAIL: admin@openbas.io
OPENBAS_ADMIN_PASSWORD: admin
OPENBAS_ADMIN_TOKEN: 0d17ce9a-f3a8-4c6d-9721-c98dc3dc023f
commands:
- apt update && apt install -y gnupg
- curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
Expand All @@ -116,18 +116,18 @@ services:
- apt install -y nodejs
- apt install -y git
- git submodule update --init --recursive
- cd openex-front
- cd openbas-front
- yarn install
- yarn build
- cd ..
- mvn install -DskipTests=true
- java -jar openex-api/target/openex-api.jar
- java -jar openbas-api/target/openbas-api.jar

---

kind: pipeline
type: docker
name: openex-tests-master
name: openbas-tests-master

trigger:
branch:
Expand All @@ -144,23 +144,23 @@ steps:
- name: api-tests
image: maven:3.9.6-eclipse-temurin-21
environment:
SPRING_DATASOURCE_URL: jdbc:postgresql://pgsql:5432/openex
SPRING_DATASOURCE_URL: jdbc:postgresql://pgsql:5432/openbas
MINIO_ENDPOINT: minio
MINIO_PORT: 9000
commands:
- mvn install -DskipTests
- cd openex-api
- cd openbas-api
- mvn test
- cd ../openex-framework
- cd ../openbas-framework
- mvn test
- cd ../openex-injectors
- cd ../openbas-injectors
- mvn test
depends_on:
- submodules
- name: frontend-tests
image: node:20.11.0-alpine3.18
commands:
- cd openex-front
- cd openbas-front
- yarn install
- yarn build
- yarn check-ts
Expand All @@ -173,13 +173,13 @@ steps:
token:
from_secret: CODECOV_TOKEN
files:
- openex-api/target/site/jacoco/jacoco.xml
- openex-framework/target/site/jacoco/jacoco.xml
- openex-injectors/openex-caldera/target/site/jacoco/jacoco.xml
- openbas-api/target/site/jacoco/jacoco.xml
- openbas-framework/target/site/jacoco/jacoco.xml
- openbas-injectors/openbas-caldera/target/site/jacoco/jacoco.xml
- name: build-circleci
image: curlimages/curl
commands:
- curl -X POST --data "branch=master" https://circleci.com/api/v1.1/project/github/OpenEx-Platform/openex/build?circle-token=$CIRCLECI_TOKEN
- curl -X POST --data "branch=master" https://circleci.com/api/v1.1/project/github/OpenBAS-Platform/openbas/build?circle-token=$CIRCLECI_TOKEN
environment:
CIRCLECI_TOKEN:
from_secret: circleci_token
Expand All @@ -190,7 +190,7 @@ steps:
- name: build-circleci-release
image: curlimages/curl
commands:
- curl -X POST --data "tag=$DRONE_TAG" https://circleci.com/api/v1.1/project/github/OpenEx-Platform/openex/build?circle-token=$CIRCLECI_TOKEN
- curl -X POST --data "tag=$DRONE_TAG" https://circleci.com/api/v1.1/project/github/OpenBAS-Platform/openbas/build?circle-token=$CIRCLECI_TOKEN
environment:
CIRCLECI_TOKEN:
from_secret: circleci_token
Expand All @@ -217,6 +217,6 @@ services:
- name: pgsql
image: postgres:16-alpine
environment:
POSTGRES_USER: openex
POSTGRES_PASSWORD: openex
POSTGRES_DB: openex
POSTGRES_USER: openbas
POSTGRES_PASSWORD: openbas
POSTGRES_DB: openbas
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/question.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ assignees: ''

## Prerequisites

- [ ] I read the [Deployment and Setup](https://docs.openex.io/latest/deployment/overview) section of the OpenBAS documentation as well as the [Troubleshooting](https://docs.openex.io/latest/deployment/troubleshooting) page and didn't find anything relevant to my problem.
- [ ] I read the [Deployment and Setup](https://docs.openbas.io/latest/deployment/overview) section of the OpenBAS documentation as well as the [Troubleshooting](https://docs.openbas.io/latest/deployment/troubleshooting) page and didn't find anything relevant to my problem.
- [ ] I went through old GitHub issues and couldn't find anything relevant
- [ ] I googled the issue and didn't find anything relevant

Expand Down
4 changes: 2 additions & 2 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--
Thank you very much for your pull request to the OpenEx project! We as a community
Thank you very much for your pull request to the OpenBAS project! We as a community
driven project depend on support and contributions like this!
Thus already a BIG THANK YOU upfront to you for choosing to help with your PR.
Expand All @@ -20,7 +20,7 @@ Thus already a BIG THANK YOU upfront to you for choosing to help with your PR.
<!--
Please submit the source code in a way, where you could honestly say `This code is finished`.
If you feel that there are possibilities for improving the code quality, please do so.
By doing this, you are actively helping us to improve the quality of the entire OpenEx project.
By doing this, you are actively helping us to improve the quality of the entire OpenBAS project.
-->

- [ ] I consider the submitted work as finished
Expand Down
20 changes: 10 additions & 10 deletions .github/codeql-config.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: "CodeQL config"
paths:
- openex-api/src
- openex-front/src
- openex-framework/src
- openex-model/src
- openex-injectors/openex-http/src
- openex-injectors/openex-lade/src
- openex-injectors/openex-mastodon/src
- openex-injectors/openex-ovh/src
- openex-injectors/openex-ssh/src
- openbas-api/src
- openbas-front/src
- openbas-framework/src
- openbas-model/src
- openbas-injectors/openbas-http/src
- openbas-injectors/openbas-lade/src
- openbas-injectors/openbas-mastodon/src
- openbas-injectors/openbas-ovh/src
- openbas-injectors/openbas-ssh/src
paths-ignore:
- openex-front/src/static
- openbas-front/src/static
10 changes: 5 additions & 5 deletions .github/workflows/test-feature-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: test-feature-branch
on:
workflow_dispatch:
inputs:
openex_config:
openbas_config:
type: string
default: '{}'
required: false
Expand Down Expand Up @@ -31,15 +31,15 @@ jobs:
- name: Build into Alpine
run: |
export JAVA_HOME=/usr/lib/jvm/default-jvm/
cd openex-front
cd openbas-front
yarn install
yarn build
cd ../
mvn install -DskipTests -Pdev
shell: alpine.sh {0}

- run: mkdir -p openex-build/
- run: cp openex-api/target/openex-api.jar openex-build/
- run: mkdir -p openbas-build/
- run: cp openbas-api/target/openbas-api.jar openbas-build/

- name: Docker meta
id: meta
Expand Down Expand Up @@ -89,6 +89,6 @@ jobs:
ansible-tower-url: ${{ secrets.AWX_URL }}
template-id: "34"
additional-vars: |
{ "openex_version": "${{steps.meta.outputs.version}}", "openex_config": ${{ inputs.openex_config }} }
{ "openbas_version": "${{steps.meta.outputs.version}}", "openbas_config": ${{ inputs.openbas_config }} }
- name: display URL
run: echo "https://${{steps.meta.outputs.version}}.oex.dev.filigran.io"
8 changes: 4 additions & 4 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[submodule "openex-injectors"]
[submodule "openbas-injectors"]
path = openbas-injectors
url = https://github.com/OpenEx-Platform/injectors.git
[submodule "openex-collectors"]
url = https://github.com/OpenBAS-Platform/injectors.git
[submodule "openbas-collectors"]
path = openbas-collectors
url = https://github.com/OpenEx-Platform/collectors.git
url = https://github.com/OpenBAS-Platform/collectors.git
2 changes: 1 addition & 1 deletion CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ further defined and clarified by project maintainers.
## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the project team at contact@openex.io. All
reported by contacting the project team at contact@openbas.io. All
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. The project team is
obligated to maintain confidentiality with regard to the reporter of an incident.
Expand Down
22 changes: 11 additions & 11 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
# Contributing to OpenEx
# Contributing to OpenBAS

Thank you for reading this documentation and considering making your contribution to the project. Any contribution which help us improve the platform is valuable and much appreciated. If it is also meaningful to you or your organisation it’s all for the best.

In order to help you understand the project, where we are heading and how you can contribute, below are several resources and answers.

Do not hesitate to shoot us an [email](mailto:contact@openex.io) or join us on our [Slack channel](https://luatix.slack.com/). Most of the articles below are an introduction for our [detailed documentation](https://www.notion.so/luatix/OpenEx-f3ef8eab9bfe4ad18feada44511d727a).
Do not hesitate to shoot us an [email](mailto:contact@openbas.io) or join us on our [Slack channel](https://luatix.slack.com/). Most of the articles below are an introduction for our [detailed documentation](https://docs.openbas.io).


## Why contribute?

OpenEx is an open source project aiming at building a platform for threat intelligence analysts, allowing them to capitalise, structure, organise and visualise amouts of information. It allows analysts to leverage knowlegde from these information while keeping track of each and every source of information (if you want to know more about OpenEx, you can read the [detailed documentation](https://www.notion.so/luatix/OpenEx-f3ef8eab9bfe4ad18feada44511d727a) or try it on the [demonstration plateform](https://demo.openex.io/)).
OpenBAS is an open source project aiming at building a platform for threat intelligence analysts, allowing them to capitalise, structure, organise and visualise amouts of information. It allows analysts to leverage knowlegde from these information while keeping track of each and every source of information (if you want to know more about OpenBAS, you can read the [detailed documentation](https://docs.openbas.io) or try it on the [demonstration plateform](https://demo.openbas.io/)).

Whether you are an organisation or an individual working or studying in the field of cybersecurity and cyberdefense, or simply as an individual looking for a technical challenge, contributing to the OpenEx project may represent a great opportunity for you.
Whether you are an organisation or an individual working or studying in the field of cybersecurity and cyberdefense, or simply as an individual looking for a technical challenge, contributing to the OpenBAS project may represent a great opportunity for you.

* You can help grow the community and a tool focused on improving the understanding of cyberthreats and therefore enhancing our capability of better protecting our organisations and societies ;

* You will be able to adapt the tool to your core interests and methods of work by developping features or fixing bugs you are most interested in ;

* OpenEx is also an interesting opportunity for developpers to work on new technologies such as React/REST technologies.
* OpenBAS is also an interesting opportunity for developpers to work on new technologies such as React/REST technologies.


## Where is the project heading ?

Now that the first version of the tool has been released, our goal for the future releases is two-fold :

* Of course, fix bugs and develop features which are identify as non-critical but would really add-up to OpenEx power ;
* Of course, fix bugs and develop features which are identify as non-critical but would really add-up to OpenBAS power ;

* On a longer term vision, we would like to develop a multi-layered approch in the platorm, which would be divided in three strata : a strategic level (for informations about actors), a kill chain level (with the different steps of the attack chain) and an infrastructure level (containing data on the infrastructure used by the attacker).


## Code of Conduct

OpenEx has adopted a Code of Conduct that we expect project participants to adhere to. Please read the [full text](https://github.com/OpenEx-Platform/openex/blob/master/CODE_OF_CONDUCT.md) so that you can understand which actions will and will not be tolerated.
OpenBAS has adopted a Code of Conduct that we expect project participants to adhere to. Please read the [full text](https://github.com/OpenBAS-Platform/openbas/blob/master/CODE_OF_CONDUCT.md) so that you can understand which actions will and will not be tolerated.


## How can you contribute ?
Expand All @@ -40,13 +40,13 @@ Any contribution is appreciated and many don’t imply coding. Contributions can

For general suggestions or questions about the project or the documentation, you can open an issue on the repository with the label "question". We will answer as soon as possible. If you do not wish to publish on the repository, please see the section below [**"How can you get in touch for other questions?"**](#howcanyougetintouchforotherquestions).

* Just using OpenEx and opening issues if everything is not working as expect will be a huge step forward. See our section about opening an issue. To report a bug, please refer to the [bug reporting module](https://github.com/OpenEx-Platform/openex/issues/new?assignees=&labels=&template=bug_report.md&title=). To suggest a new feature, please fill in the feature request [form](https://github.com/OpenEx-Platform/openex/issues/new?assignees=&labels=&template=feature_request.md&title=).
* Just using OpenBAS and opening issues if everything is not working as expect will be a huge step forward. See our section about opening an issue. To report a bug, please refer to the [bug reporting module](https://github.com/OpenBAS-Platform/openbas/issues/new?assignees=&labels=&template=bug_report.md&title=). To suggest a new feature, please fill in the feature request [form](https://github.com/OpenBAS-Platform/openbas/issues/new?assignees=&labels=&template=feature_request.md&title=).

* Don’t hesitate to flag us an issue with the documentation or the templates if you find them incomplete or not clear enough. You can do that either by opening a [bug report](https://github.com/OpenEx-Platform/openex/issues/new?assignees=&labels=&template=bug_report.md&title=) or by sending us a message on our [Slack channel](https://slack.luatix.org/).
* Don’t hesitate to flag us an issue with the documentation or the templates if you find them incomplete or not clear enough. You can do that either by opening a [bug report](https://github.com/OpenBAS-Platform/openbas/issues/new?assignees=&labels=&template=bug_report.md&title=) or by sending us a message on our [Slack channel](https://slack.luatix.org/).

* You can look through opened issues and help triage them (ask for more information, suggest workarounds, suggest label, flag issues etc.)

* If you are interested in contributing to developping OpenEx, please refer to the [detailed documentation](https://www.notion.so/luatix/OpenEx-f3ef8eab9bfe4ad18feada44511d727a). It can be either a to fix an issue which is meaningful to you, or to develop a feature requested by others.
* If you are interested in contributing to developping OpenBAS, please refer to the [detailed documentation](https://docs.openbas.io). It can be either a to fix an issue which is meaningful to you, or to develop a feature requested by others.

* All commits messages must be formatted as: `[component] Message (#issuenumber)` where component should be:
* api
Expand All @@ -56,4 +56,4 @@ For general suggestions or questions about the project or the documentation, you

### How can you get in touch for other questions ?

If you need support or you wish to engage a discussion about the OpenEx platform, feel free to join us on our [Slack channel](https://luatix.slack.com/). You can also send us an [email](mailto:contact@openex.io).
If you need support or you wish to engage a discussion about the OpenBAS platform, feel free to join us on our [Slack channel](https://luatix.slack.com/). You can also send us an [email](mailto:contact@openbas.io).
Loading

0 comments on commit b80d7f7

Please sign in to comment.