Git Product home page Git Product logo

autodefender's Introduction

autodefender's People

Contributors

peersky avatar

Stargazers

 avatar

Watchers

 avatar

autodefender's Issues

Add standalone action support

Right now actions can be implemented only as part of monitors. We should be able to define actions without. by adding new command in cli: ts-node src/cli.js functions --config defender.config.ts

AccessControl macher must parse custom roles

Access control matcher right now just checks for DEFAULT_ADMIN_ROLE

However the correct behaviour would be to use events log to get
a. any role granted events that are not DEFAULT_ADMIN
b. all privileged accounts that were granted roles

Summarizer notification channel

For a various reasons some of monitoring activity makes sense to report in Slack as aggregate summary over some time window. I.e statistical data: numbers of transactions, numbers of privileged account activity etc.

Hence It would be great if we have following workflow:

  1. Any Monitors that must report to such summary dashboard are connected to "Summarizer" action.
  2. Such "Summarizer" action takes alert information / metadata and records it in to KVS store (or any other DB solution we can get)
  3. Another Autotask is invoked on schedule basis to read KVS store with reports and process them. (Idea: Add anomaly detector here!)
  4. Send summary webhook sentinel that will post an update to slack/telegram/email etc

From user side ideally we just specify "SummaryWriter" in Notification Channel.

ExtractedAccountsList Updater

if monitored contracts remove/add new account (i.e. OwnershipChanged) monitoring system should be able to automatically append new owner to ExtractedAccountsList and remove old one IF he is not involved in other privileges anymore

Create npm package that works as CLI binary

In order to do so we need to:

  1. compile typescript
  2. substitute in cli.js "contracts.ts" and "monitors.ts" invocation to ".js" files
  3. improve cli.js with required arguments, error in case of empty arguments supplied
  4. Perhaps it makes sense in same batch of changes to move ./src/types to ./types
  5. update readme with package variant of config file: defender.config.js

add --network flag

With this flag the scope of defined networks in configuration should be filtered and only specified network must be used.

I.e.
--network mainnet means that all other networks beyond mainnet must be skipped

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.