-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP MythX integration (Ethereal Hackathon) #1883
Conversation
Hey @aquiladev, I'm getting the following error in the browser console when running remix-IDE locally:
This is caused by code in armlet's util.js:
Seems like there is a browser compatibility issue with armlet? Any ideas on how to best fix this? |
Ok, I just went to the armlet repo that you already created an issue... Edit: I got it working for now by patching up armlet. What would still be nice to have would be highlighting vulnerable code locations using the source mappings in the response 😉 |
Very nice! |
it would be a good improvement for the next version |
@b-mueller |
@aquiladev if you submit source code & byte code you should get back standard solc sourceMaps from the API. MythX for Truffle has helper functions to convert those to lines and columns. There is an older Remix plugin that has code highlighting. It uses issuesObject.convertMythXReport2EsIssue from the |
The approach requires ASTs of contract I can't find ASTs in sources or artifacts after compilation in remix-ide. There is the only legacyAST in sources |
Hmm which part requires the AST? You don't need to submit the AST to MythX to get source mappings back, you can also submit the source itself instead like Sabre does:
Every issue should have a |
MythX doesn't need it, but when I try to create MythXIssues object in order to map issues with source code I have an error. MythXIssues needs AST. I'm not sure that it really needs it. I'll check |
@aquiladev @b-mueller thanks for this PR ;) |
@yann300 I think I need to finish code highlighting and improve the report rendering. I change the PR to WIP. If you have any suggestions or thoughts about the necessity or implementation of the functionality, pls guide me. |
sure @aquiladev how could i PM you? |
nm, found you |
i sent you a message in gitter |
Hi guys, this PR still needs some improvements & testing:
|
This is superseded by #1999 right? Can we close it? |
Purpose
Resolve Consensys/mythx-gitcoin#3
Does this introduce a breaking change?
Pull Request Type
What kind of change does this Pull Request introduce?
Intro
The pull request introduces a new tab 'Security'. The tab contains MythX integration.
User can provide own credentials for MythX and analyze compiled contracts
Analyze report:
In case of error: