You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After running Monkey and going to the ATT&CK report and clicking on "System information discovery" or "System network configuration discovery", it should show more details about the selected attack but the UI crashes.
The "List of all techniques" button also fails because of this.
To Reproduce
Run the monkey. Once the report is generated, go to the ATT&CK report tab and click on "System information discovery" or "System network configuration discovery" (or toggle "List of all techniques").
Expected behavior
Should show more details about the attack in the form of a table below the matrix.
The text was updated successfully, but these errors were encountered:
Spent some time on this and narrowed it down to this piece of code (this is for "System network configuration discovery" i.e. T1016; it's similar for "System information discovery" i.e. T1082)
in monkey/monkey_island/cc/ui/src/components/attack/techniques/T1016.js.
There's something wrong with this.props.data.network_info. It renders once I comment that line (default value is an empty array).
Thanks a lot! I will see if I can reproduce. Also, if you run UI in debug mode (npm start) you can trace the exact line and error from console. If you also provide the error - this issue is half of the solution already :D
ShayNehmad
added
Bug
An error, flaw, misbehavior or failure in the Monkey or Monkey Island.
UI
User Interface
labels
Mar 16, 2020
Uncaught TypeError: Cannot read property 'forEach' of undefined
at renderMachineFromSystemData (Helpers.js:35)
at Object.accessor (T1016.js:66)
at eval (methods.js:236)
at Array.forEach (<anonymous>)
at accessRow (methods.js:235)
at eval (methods.js:252)
at Array.map (<anonymous>)
at ReactTable.getDataModel (methods.js:251)
at ReactTable._class (lifecycle.js:17)
at ReactTable._class (methods.js:4)
Which is because it tries accessing a key ips but the key doesn't exist since the object is empty.
If I remove that particular part of the data and only pass the part which has all the required information, then there's this:
Uncaught TypeError: resolvedData.map is not a function
at ReactTable.getDataModel (methods.js:251)
at ReactTable._class (lifecycle.js:17)
at ReactTable._class (methods.js:4)
at new ReactTable (index.js:28)
at constructClassInstance (react-dom.development.js:14204)
at updateClassComponent (react-dom.development.js:18413)
at beginWork$1 (react-dom.development.js:20186)
at HTMLUnknownElement.callCallback (react-dom.development.js:336)
at Object.invokeGuardedCallbackDev (react-dom.development.js:385)
at invokeGuardedCallback (react-dom.development.js:440)
Describe the bug
After running Monkey and going to the ATT&CK report and clicking on "System information discovery" or "System network configuration discovery", it should show more details about the selected attack but the UI crashes.
The "List of all techniques" button also fails because of this.
To Reproduce
Run the monkey. Once the report is generated, go to the ATT&CK report tab and click on "System information discovery" or "System network configuration discovery" (or toggle "List of all techniques").
Expected behavior
Should show more details about the attack in the form of a table below the matrix.
The text was updated successfully, but these errors were encountered: