The Hackfury DAO
The Hackfury DAO is Decentralized Audit Organization for worldwide audits management build with DAOStack. The DAO stores meta information for all audit reports submitted. It also handles reputation management for auditors. There are 3 MAJOR problems that Hackfury DAO solves:
- The arguments between auditor and customer when the audited contract is hacked - both of them can verify necessary information stored in blockchain that can help investigations:
- Code version audited - confirms what code version was audited
- The report hash with link to it - proves that auditor and customer haven't changed the report after the incident. It can be stored in private repository and be disclosed only after the incident
- customer confirmation - the confirmation that the customer accepted the final version of the report
- binary summary - confirms that the code audited was passing all the security requirements and no issues remained
- Reputation management for audit companies. DAO stores and manipulates the reputation for all auditor companies. This is transparent rating of auditors - how much reputation they have, how much reputation they earned, why they lost reputation etc.
- Auditors don't lose anything if they miss. When auditor submits the report to DAO, it locks some ether (for example 20% of audit price) for year. Auditor can claim this ether in a year, if no bugs/hacks were discovered within the period. Theoretically, This ether can be blocked by customer.
MVP for ETHBerlin Hackathon
We developed MVP for Hackfury DAO with next functions:
- Register as auditor
- Submit audit report metadata to blockchain; lock ether for the period in the audit report.
- Sign the report by customer.
- Tip the auditor with the reputation
- Claim the tokens back from the report lock There are also several trusted auditor accounts predefined with non-zero reputation
You can try the dapp here: http://22.214.171.124:3000/ Or you can ask us to show you))
The Hackfury Concepts to be done
We consider moving forward with DAOStack extending the functionality for the organization, so DAOStack can help us with:
- DAO receives audit service requests; distributes them. After DAO receives ether for audit it locks it; 80% of locked ether goes to auditor after customer signs report and 20% in a year, if there were no security incidents with it
- DAO Reputation model should be reevaluated and extended to have more gain and loss options
- Auditor report data can be changed before customer signed the report
- A lot of getters for getting stats about audits, reputation change etc.
DAO Reputation model
There are N trusted auditors predefined in the Hackfury DAO (they will be community respected auditors Consensys, Quanstamp, Hacken, Trail of bits etc.). These 10 auditors have 100 reputation points at start. Trusted auditors - all auditors that have >=100 reputation points.
All new auditors start with 0 reputation. There are 2 ways to get reputation points:
- Auditor receive 3 reputation points after they claim tokens - they can claim tokens only if no issues in audited code were found during 1 year
- Auditor can be tipped with up to 5 reputation points by trusted auditor Auditors with >= 100 points of reputation become trusted auditors with access to some privileged functions.
Reputation points are reduced only in case when the audited code was hacked or issue in it was discovered - after the issue is confirmed by 35% of trusted auditors, auditor who did the report lose 42 reputation points and ether locked within the report is transferred back to customer.
- registerAsAuditor - any account can register as auditor with 0 reputation points
- submitReport - auditor publishes report metadata to blockchain
- confirmReport - customer confirms that he received the final report
- blameHack - trusted auditor can blame the report as failed after the hack of code appears
- claimEnd - auditor can claim locked tokens/ether after a year without hacks of the code
- tipAuditorWithReputation - trusted auditors can give some reputation points for addresses they know
Functions that will be programmed in future:
- orderReport - customer can order a report from randomly selected trusted auditor
- changeReportData - auditor can change report metadata before customer signed the report
- auditor - address of the auditor
- customer - address of the customer
- date - date when the audit report was published
- linkToReport - link to report (can be closed github for private reports)
- codeVersionAudited - the version of code audited (link to etherscan / link to github, link should contain commit)
- reportHashsum - hashsum of the report file
- boolSummary - bool summary of the audit, was it passing or not
- approvedByCustomer - bool whether customer approved the report
Hackfury - we doing hack, we doing fury