Giter VIP home page Giter VIP logo

sarna's Introduction

Security Assessment Report geNerated Automatically

What is SARNA?

Well, the name is clear, SARNA is a tool to generate security assessment reports automatically in DOCX format. It aims to solve a problem I have been having. As a pentester everybody knows that writing reports sucks, and at the end you spend a lot of time copy pasting things from other reports (like definitions or other things), and if, for some reason, you have to do your reports in DOCX, there is no easy way to automatize that.

SARNA is a collaborative platform that let a group of pentesters to work together to make a great report. You have to concentrate in hacking and breaking things, and hopefully, SARNA will do de boring part of the report.

Why the name

Sarna is the Spanish name for Scabies. In Spain we have a saying "sarna con gusto no pica" in english is something like "Scabies with pleasure does not itch". It is a little bit disgusting, but at the end, it means that if you have something bad (like having to make a report), but you get something good with it in exchange (like doing it fast with this tool), it is not that bad at the end.

Run test environment

To run a simple test environment in order to check what is SARNA yo can use the docker-compose recipe

PLEASE DO NOT USE DOCKER-COMPOSE RECIPE FOR PRODUCTION WITHOUT CHANGING PASSWORDS AND SECRETS

docker-compose up

This will take a while for the first time. At the end of the process your SARNA Server should be running at http://localhost:5000

You only need to create a new user

docker-compose exec sarna /bin/sh
flask user add -r manager <user_name>

Please referer to flask user add --help for more info.

sarna's People

Contributors

dependabot[bot] avatar joserabal avatar rsrdesarrollo avatar sergioframi avatar valenbg1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

sarna's Issues

Missing OWASP Categories items

Add owasp categories on sarna/model/enums/category.py

CONFIG-009 - Test file permissions
INPVAL-017 - Testing for HTTP Incomming Requests
CRYPST-004 - Testing for Weak Encryption

MariaDB port

Is your feature request related to a problem? Please describe.
I'm always frustrated when I have to perform backups of this software. It would be easier if the DB used was MariaDB based ๐Ÿ™„

Describe the solution you'd like
I'd like you to change from PostgreSQL to MariaDB ๐Ÿ™†โ€โ™‚๏ธ

Describe alternatives you've considered
MySQL is also a good alternative ๐Ÿ˜„
If the change is not possible, I'd like to have a backup functionality ๐Ÿค”

Additional context
Thank you very much in advance! ๐Ÿ˜ƒ

Report Templates

Hi,
Congrats for the app. First of all.
I can't see any template to discover how to create my own template. I've created a docx file but I can't add my finding that I also created to this goal so:

  • Is there any documentation about how to create a docx template?
  • Is there any finding database to import the most common vulnerabilities?
  • Is there any option to import Burpsuite scans, or nessus or qualys scans?

If the questions are "no, there are no", I would like to request this feature if you consider it, of course.

Thank you

Refresh CSRF token of the edit page

Is your feature request related to a problem? Please describe.
I'm always frustrated when I try to create or edit a large vulnerability and the CSRF token becomes invalid while I'm editing. When I finally submit the vulnerability details, the request is rejected and the data I sent gets lost.

Describe the solution you'd like
It would be great if the edit page could use always a valid CSRF token.

Describe alternatives you've considered
I think the solution would be to refresh the CSRF token before sending the data or every time the token becomes invalid.

Additional context
The edit URL is https://<sarna hostname>/findings/<finding id>/edit/

Add Fix plan actions to assessments

When you submit an assessment to a client, it's quite common to add some kind of fix plan summary with a bunch of actions to take into account.

Multiple vulnerabilities through lodash dependency

Describe the bug
The horsey dependency declared at package.json brings a lodash version that has multiple known vulnerabilities.

Additional context
As you can see at Snyk's Vuln DB only the latest version has no known direct vulnerabilities. Since no new version from horsey has been published, and the lodash dependency at horsey is declared using a specific version, I suggest the use of another library for this functionality or the removal of the dependency.

Another option would be to open an issue to the horsey repo, but it has had no activity since 2016.

SQLAlchemy problem

Hi,
When I launch docker-compose I obtain the next problems:

sarna_1 | INFO [alembic.runtime.migration] Running upgrade 9ab3158991e2 -> 951b8ed9a8e1, empty message psql_1 | 2020-09-01 11:31:32.067 UTC [33] ERROR: relation "client" does not exist at character 205 psql_1 | 2020-09-01 11:31:32.067 UTC [33] STATEMENT: SELECT client.id AS client_id, client.short_name AS client_short_name, client.long_name AS client_long_name, client.creator_id AS client_creator_id, client.finding_counter AS client_finding_counter psql_1 | FROM client sarna_1 | Traceback (most recent call last): sarna_1 | File "/usr/local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1248, in _execute_context sarna_1 | cursor, statement, parameters, context sarna_1 | File "/usr/local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 590, in do_execute sarna_1 | cursor.execute(statement, parameters) sarna_1 | psycopg2.errors.UndefinedTable: relation "client" does not exist sarna_1 | LINE 2: FROM client
I have no idea what happens, because I follow REAMDE.md and I can't find the problem with the error.

Also, I tried to create a new user but I obtain a similar error. Basically, flask can't modify or insert any change in the database.

Thank you

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.