Skip to content
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

initial version of MITRE ATT&CK notebook #65

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Open

Conversation

ashwin-patil
Copy link
Member

No description provided.

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@@ -0,0 +1,2063 @@
{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you put some of the imports at the top of this cell into extra_imports?


Reply via ReviewNB

@@ -0,0 +1,2063 @@
{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a monster cell, maybe consider having a bit more details in Markdown about what its doing, and have an output of some sort so its clearer that it has done as expected.


Reply via ReviewNB

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's the biggest cell I've ever seen!

If it's all just utility functions that are executed and forgotten it's OK but if it's actually doing something procedural, I agree about the comments and/or break it up.

MITRE ATT&CK for Azure Sentinel.ipynb Outdated Show resolved Hide resolved
MITRE ATT&CK for Azure Sentinel.ipynb Outdated Show resolved Hide resolved
MITRE ATT&CK for Azure Sentinel.ipynb Outdated Show resolved Hide resolved
MITRE ATT&CK for Azure Sentinel.ipynb Outdated Show resolved Hide resolved
@@ -0,0 +1,2063 @@
{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider setting width as a percentage rather than a fixed pixel width


Reply via ReviewNB

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The image is very unusual in shape. I tried few percetage options but seems they do not render/display properly.

@@ -0,0 +1,2063 @@
{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we print out the same data as in the table above (just in a harder to understand format)?


Reply via ReviewNB

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Different format after data reshaping . the output requires for plotly figures to plot

@@ -0,0 +1,2063 @@
{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as before, nut sure what value displaying this adds.


Reply via ReviewNB

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Purpose is to show data structure format require to plot the graph. I think verbosity will help to users.

@@ -0,0 +1,2063 @@
{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't get figs to show in Lab but work fine in normal Notebook env.


Reply via ReviewNB

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

requires jupyterlab-plotly extension. added comments.

@petebryan
Copy link
Contributor

Overall it works but there are a few usability areas that could do with addressing (you can always do some of them at a later date).

@review-notebook-app
Copy link

View / edit / reply to this conversation on ReviewNB

ianhelle commented on 2022-02-04T19:27:58Z
----------------------------------------------------------------

Line #9.    from ipywidgets import widgets as ipywidgets, Layout

Many of these are imported by init_notebook so don't need them here unless you want to keep them for clarity of what you would need to import. I think that it's reasonable to leave it in - just FYI


@review-notebook-app
Copy link

View / edit / reply to this conversation on ReviewNB

ianhelle commented on 2022-02-04T19:27:59Z
----------------------------------------------------------------

Line #27.    display(HTML("
Starting Notebook setup...
"))

Can you get rid of the whole section nbcheck?


@review-notebook-app
Copy link

View / edit / reply to this conversation on ReviewNB

ianhelle commented on 2022-02-04T19:28:00Z
----------------------------------------------------------------

Line #97.        for i in range(0, 5):

Don't need to change this but if I was coding this I'd do something more like:

  • create a dictionary with the ranges and mappings (the value in the dict probably needs to be a tuple)
  • iterate through the dict in a single loop and apply the assignments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants