Skip to content
CyberismoComPublic

About

A security-as-code tool for making a difference in cybersecurity

Topics

Resources

Contributing

Security policy

Stars

13 stars

Watchers

1 watching

Forks

Latest commit

 

History

1,437 Commits

Folders and files

Repository files navigation

Cyberismo: a tool for making a difference in cybersecurity

Visit Cyberismo solution for an overview and Cyberismo documentation for instructions and tutorials.

Copyright © Cyberismo Ltd and contributors 2024

License and trademark policy

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License version 3 as published by the Free Software Foundation.

The use of Cyberismo trademark is governed by the Cyberismo open source trademark policy. See separate file TRADEMARK.adoc.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

See separate file LICENSE for more information.

Notice that while Cyberismo Ltd enforces the license of this software, the license does not affect the content produced by Cyberismo tool users. Users can be confident that the resulting documents and resources produced with Cyberismo tools and software are not affected by the licenses that Cyberismo Ltd uses to distribute the software.

Contributing

See separate file CONTRIBUTING.

Development

The easiest way to set up a development environment is using a Dev Container. It installs all system dependencies automatically.

Prerequisites

Getting Started

  1. Clone the repository

  2. Open the folder in VS Code

  3. When prompted, click Reopen in Container (or run Dev Containers: Reopen in Container from the command palette)

  4. Wait for the container to build and the post-create script to finish

  5. Run pnpm dev to start the development servers

The dev container automatically installs all system dependencies (Ruby, C++ build tools, CMake), Node.js 22, pnpm, and project dependencies.

Manual Setup

If you prefer not to use a Dev Container, install the following system dependencies first.

System Dependencies

Linux (Ubuntu/Debian)

sudo apt-get update
sudo apt-get install -y build-essential cmake python3 ruby-full
sudo gem install --no-document asciidoctor-pdf rouge

Linux (Fedora)

sudo dnf install gcc-c++ make cmake python3 ruby rubygems
sudo gem install --no-document asciidoctor-pdf rouge

macOS

xcode-select --install
brew install cmake python ruby
gem install --no-document asciidoctor-pdf rouge

Windows

Install Node.js with the "Tools for Native Modules" option, which brings the MSVC toolchain and Python, and install CMake.

The C++ toolchain, CMake, Make and Python are used to build the bundled Clingo answer set programming runtime from source during pnpm install. Ruby and the asciidoctor-pdf gem are only needed for PDF export.

Node.js and pnpm

Install Node.js 22 LTS, then enable pnpm via corepack, which picks up the pnpm version pinned in package.json:

corepack enable

Corepack installs the pnpm command next to the Node.js binary, so prefix the command with sudo if Node.js is installed system-wide.

Install Dependencies and Build

Clone the repository with its submodules. @cyberismo/node-clingo builds its native addon from the clingo and BS_thread_pool submodules, so they have to be in place before pnpm install:

git clone --recurse-submodules https://github.com/CyberismoCom/cyberismo.git
cd cyberismo

In an existing clone, initialize them with:

git submodule update --init --recursive

Then install and build:

pnpm install
pnpm build

Copy env.example files to respective .env files:

cp tools/backend/env.example tools/backend/.env

Run Tests

The app tests include Playwright end-to-end tests, so install the browsers once:

pnpm --filter=app exec playwright install --with-deps
pnpm test

Optional extras, such as the Mermaid CLI for rendering diagrams in PDF exports, are described in the CLI package readme.

Run Project

pnpm dev

Backend is accessible at http://localhost:3000

Frontend is accessible at http://localhost:5173

About

A security-as-code tool for making a difference in cybersecurity

Topics

Resources

Contributing

Security policy

Stars

13 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages