MCPcopy Index your code
hub / github.com/infobyte/faraday

github.com/infobyte/faraday @v5.22.0 sqlite

repository ↗ · DeepWiki ↗ · release v5.22.0 ↗
7,006 symbols 30,918 edges 325 files 390 documented · 6%
README

logo


Open Source Vulnerability Manager

Security has two difficult tasks: designing smart ways of getting new information, and keeping track of findings to improve remediation efforts. With Faraday, you may focus on discovering vulnerabilities while we help you with the rest. Just use it in your terminal and get your work organized on the run. Faraday was made to let you take advantage of the available tools in the community in a truly multiuser way.

Faraday aggregates and normalizes the data you load, allowing exploring it into different visualizations that are useful to managers and analysts alike.

manage dashboard

To read about the latest features check out the release notes!

Install


Docker-compose

The easiest way to get faraday up and running is using our docker-compose

$ wget https://raw.githubusercontent.com/infobyte/faraday/master/docker-compose.yaml
$ docker-compose up

If you want to customize, you can find an example config over here Link

Docker

You need to have a Postgres running first.

 $ docker run \
     -v $HOME/.faraday:/home/faraday/.faraday \
     -p 5985:5985 \
     -e PGSQL_USER='postgres_user' \
     -e PGSQL_HOST='postgres_ip' \
     -e PGSQL_PASSWD='postgres_password' \
     -e PGSQL_DBNAME='postgres_db_name' \
     faradaysec/faraday:latest
  ```

### PyPi
```shell
$ pip3 install faradaysec
$ faraday-manage initdb
$ faraday-server

Binary Packages (Debian/RPM)

You can find the installers on our releases page

$ sudo apt install faraday-server_amd64.deb
# Add your user to the faraday group
$ faraday-manage initdb
$ sudo systemctl start faraday-server

Add your user to the faraday group and then run

Source

If you want to run directly from this repo, this is the recommended way:

$ pip3 install virtualenv
$ virtualenv faraday_venv
$ source faraday_venv/bin/activate
$ git clone git@github.com:infobyte/faraday.git
$ pip3 install .
$ faraday-manage initdb
$ faraday-server

Check out our documentation for detailed information on how to install Faraday in all of our supported platforms

For more information about the installation, check out our Installation Wiki.

In your browser now you can go to http://localhost:5985 and login with "faraday" as username, and the password given by the installation process

Getting Started


Learn about Faraday holistic approach and rethink vulnerability management.

Integrating faraday in your CI/CD

Setup Bandit and OWASP ZAP in your pipeline - GitHub [PDF] - Jenkins [PDF] - TravisCI [PDF]

Setup Bandit, OWASP ZAP and SonarQube in your pipeline - Gitlab [PDF]

Faraday Cli


Faraday-cli is our command line client, providing easy access to the console tools, work in faraday directly from the terminal!

This is a great way to automate scans, integrate it to CI/CD pipeline or just get metrics from a workspace

$ pip3 install faraday-cli

Check our faraday-cli repo

Check out the documentation here.

Example

Faraday Agents


Faraday Agents Dispatcher is a tool that gives Faraday the ability to run scanners or tools remotely from the platform and get the results.

Plugins


Connect you favorite tools through our plugins. Right now there are more than 80+ supported tools, among which you will find:

Missing your favorite one? Create a Pull Request!

There are two Plugin types:

Console plugins which interpret the output of the tools you execute.

$ faraday-cli tool run \"nmap www.exampledomain.com\"
💻 Processing Nmap command
Starting Nmap 7.80 ( https://nmap.org ) at 2021-02-22 14:13 -03
Nmap scan report for www.exampledomain.com (10.196.205.130)
Host is up (0.17s latency).
rDNS record for 10.196.205.130: 10.196.205.130.bc.example.com
Not shown: 996 filtered ports
PORT     STATE  SERVICE
80/tcp   open   http
443/tcp  open   https
2222/tcp open   EtherNetIP-1
3306/tcp closed mysql
Nmap done: 1 IP address (1 host up) scanned in 11.12 seconds
⬆ Sending data to workspace: test
✔ Done

Report plugins which allows you to import previously generated artifacts like XMLs, JSONs.

faraday-cli tool report burp.xml

Creating custom plugins is super easy, Read more about Plugins.

API


You can access directly to our API, check out the documentation here.

Links

Core symbols most depended-on inside this repo

n
called by 6171
faraday/server/www/static/js/2.60708105.chunk.js
create
called by 1272
faraday/server/models.py
r
called by 1235
faraday/server/www/static/js/2.60708105.chunk.js
at
called by 1206
faraday/server/www/static/js/2.60708105.chunk.js
e
called by 1063
faraday/server/www/static/js/main.b22f11f3.chunk.js
o
called by 1016
faraday/server/www/static/js/2.60708105.chunk.js
n
called by 908
faraday/server/www/static/js/main.b22f11f3.chunk.js
a
called by 838
faraday/server/www/static/js/2.60708105.chunk.js

Shape

Function 3,779
Method 2,323
Class 803
Route 101

Languages

TypeScript54%
Python46%

Modules by API surface

faraday/server/www/static/js/main.b22f11f3.chunk.js2,523 symbols
faraday/server/www/static/js/2.60708105.chunk.js1,235 symbols
faraday/server/models.py273 symbols
tests/test_api_vulns_workspaced.py169 symbols
faraday/server/api/base.py145 symbols
tests/test_api_vulns.py110 symbols
faraday/server/api/modules/vulns_base.py102 symbols
tests/factories.py98 symbols
tests/test_api_hosts_workspaced.py80 symbols
tests/test_api_workflow.py72 symbols
tests/test_api_bulk_create.py72 symbols
tests/test_api_workspaced_base.py66 symbols

Dependencies from manifests, versioned

Sphinx1.7.6 · 1×
alembic0.9.9 · 1×
apispec6.3.0 · 1×
apispec-webframeworks0.5.2 · 1×
autobahn22.7.1 · 1×
bcrypt3.1.4 · 1×
beautifulsoup44.6.0 · 1×
bidict0.22.0 · 1×
bleach4.1.0 · 1×
cbor25.9.0 · 1×
celery5.4.0 · 1×
click8.0.1 · 1×

For agents

$ claude mcp add faraday \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact