Coder Social home page Coder Social logo

stooge's Introduction

This is Stooge. Work in progress.

Run Book

requirements

  • rabbitmq
  • mongodb
  • memcache

installation ...

start

$ cd /home/stooge

$ tmux
$ source env/bin/activate && ~/moz-stooge/scripts/stooge-scanner
$ source env/bin/activate && ~/moz-stooge/scripts/stooge-web -p 9090 -c /home/stooge/stooge.cfg

adding new sites

$ mongo stooge
$ db.sites.insert({owner:"yourorg",type:"production",url:"http://www.example.com"})

stooge's People

Contributors

jvehent avatar rillian avatar st3fan avatar willkg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

stooge's Issues

TypeError: unhashable type: 'list'

[2014-05-09 17:25:55,569: ERROR/Worker-2] stooge.scanner.tasks.bugcount_task[3c54bed2-b850-4e64-a0f8-da146d4c4f9f]: Error while counting websec bugs
Traceback (most recent call last):
  File "/home/sarentz/stooge/stooge/scanner/tasks.py", line 200, in bugcount_task
    n = count_websec_bugs(bugzilla_username, bugzilla_password, site["url"])
  File "/home/sarentz/stooge/stooge/scanner/tasks.py", line 172, in count_websec_bugs
    bug_ids.add([bug['id'] for bug in _websec_bugs_via_component(credentials, url.hostname)])
TypeError: unhashable type: 'list'

Cache today's scan

Do not hit MongoDB every single time. It is better to cache that data in memcache or redis.

Exception in checks.final_response()

[2014-05-22 15:51:05,648: ERROR/Worker-8] stooge.scanner.tasks.check_task[6d8bfe56-4c35-4cfc-aea1-86a6e7dbc329]: Error while executing checks
Traceback (most recent call last):
  File "/home/sarentz/stooge/stooge/scanner/tasks.py", line 125, in check_task
    results = execute_checks_against_responses(site)
  File "/home/sarentz/stooge/stooge/scanner/checks.py", line 132, in execute_checks_against_responses
    results["basic"].append({"name": check.__name__, "result": check(site, results, site["responses"]["http"], site["responses"]["https"])})
  File "/home/sarentz/stooge/stooge/scanner/checks.py", line 34, in xfo
    r = final_response(http_responses, https_responses)
  File "/home/sarentz/stooge/stooge/scanner/checks.py", line 14, in final_response
    return http_responses[-1]
IndexError: list index out of range

Display the scan state

If a scan is still in progress, show a little label on the page to let the user know.

Link the bug count to Bugzilla

Link to a query that displays the websec bugs for the specific site. Should look in both whiteboard and component. Using same queries Stooge does. Is that possible?

Add links to each result test label

The dashboard is nice, but when I look at my rows (e.g., developer.mozilla.org and hacks.mozilla.org), what I really want is to click any of the .test-label-fail items to see exactly what I need to do to fix it.

Super Combo Bonus Round:
Make the link go straight to a bugzilla form: "File this failure as a security bug for this site"

Differentiate between APIs and Sites

Add a way to classify the type of a site. Could be as simple as api and web. Certain checks make no sense on API-only sites and can then be skipped.

Better description and/or links to docs for the several items

For folks like me, descriptions like "Does the server send a correct X-Content-Type-Options header?" are rather useless.

It'd be great if the legend could hint at the difference between doing it or not, and include links to further description on how to make the box green, if it's considered to be actually an issue.

Show a summary above the results

Show a summary above the results with each check and the percentage of hosts that pass/fail. Should filter to your current selection.

air.mozilla.org on stooge

What do I need to do to get air.mozilla.org on?
And air-dev.allizom.org and air.allizom.org

I have some more sites that should maybe be on there. Is there a way to submit URLs?

CODE_OF_CONDUCT.md file missing

As of January 1 2019, Mozilla requires that all GitHub projects include this CODE_OF_CONDUCT.md file in the project root. The file has two parts:

  1. Required Text - All text under the headings Community Participation Guidelines and How to Report, are required, and should not be altered.
  2. Optional Text - The Project Specific Etiquette heading provides a space to speak more specifically about ways people can work effectively and inclusively together. Some examples of those can be found on the Firefox Debugger project, and Common Voice. (The optional part is commented out in the raw template file, and will not be visible until you modify and uncomment that part.)

If you have any questions about this file, or Code of Conduct policies and procedures, please see Mozilla-GitHub-Standards or email [email protected].

(Message COC001)

Move code to start a scan out of stooge-ctl

Right now stooge-ctl contains code to insert a new scan object in mongodb. This code should move somewhere else and the stooge-ctl script should simply call something more high level.

Run scans every night

Either via a cronjob or some fancy RabbitMQ scheduling. These scans will get the 'nightly' tag.

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.