Commit Graph

514 Commits (3ee3c6a34da04960f42eced3d20fc7dacae31bf8)

Author SHA1 Message Date
Sami Mokaddem 7a94612161 new: Possibility to view connected communities and concerned sharing groups in distribution graph's tooltip 2018-04-25 09:48:03 +00:00
Sami Mokaddem 56b37d08fc Merge remote-tracking branch 'upstream/2.4' into distributionGraph 2018-04-25 07:08:54 +00:00
Sami Mokaddem fac4312c78 feature-contextualMenu: Possibility to specify the container in which to
append the menu
2018-04-25 06:59:43 +00:00
Sami Mokaddem 469cece5b7 Changed distribution label in distribution graph (removed distribution
number)
2018-04-25 06:55:25 +00:00
iglocska c19e8cf1d2 fix: Fixed weird error message if an ajax query goes wrong 2018-04-24 17:49:27 +02:00
Sami Mokaddem b2f39aa411 center distribution graph inside the popover 2018-04-24 13:52:32 +00:00
Sami Mokaddem 570424cb3a fix: replaced hardcoded eventID by the real event id 2018-04-24 13:44:14 +00:00
Sami Mokaddem fa7269d556 Changed behavior of distribution progressbar: Display event distribution
along with the maximum distribution level of the items inside the event.
2018-04-24 13:40:29 +00:00
Sami Mokaddem 744f91fea0 Changed distribution graph popover title 2018-04-24 10:17:32 +00:00
Sami Mokaddem 93beb21aee feature: progress bar showing the range of the maximum distribution of
all items. Moved radar graph and  progressbar in a popover.
2018-04-24 10:05:18 +00:00
Sami Mokaddem 828426b0c9 fix: support of filtering for distribution=0 (empty(0) is true ini
php). Also, only consider attr and obj_attr (ignoring object as they
only carry meta-data)
2018-04-23 14:33:32 +00:00
Sami Mokaddem 02b4f32c4f Possibility to filter valueInFieldAttribute with multiple value.
distribution graph support inherit distribution level
2018-04-23 14:14:06 +00:00
Sami Mokaddem bdcecfb1e6 Allow filtering attributes based on specific columns (previsouly not
accessible) like distribution.
Partial support of onClick for distribution graph.
2018-04-23 13:54:36 +00:00
Sami Mokaddem f9414871b8 Initial version of the distribution graph 2018-04-23 12:51:15 +00:00
Sami Mokaddem c7496c67ca fix: changed "xhtml:body" into "xhtml:div", to avoid creating a body DOM
which cause listener on the original body to bug. Incremented js number
and check if request is ajax or not in ObjectController
2018-04-23 07:35:52 +00:00
Sami Mokaddem 4e6eec3f9c Slight ui adjustement 2018-04-20 12:57:14 +00:00
Sami Mokaddem a9024daea9 feature: Support of fullscreen in correlation graph in the event view 2018-04-20 12:50:32 +00:00
Sami Mokaddem 43e8529b9d Correlation graph in event view 2018-04-20 12:38:14 +00:00
Andras Iklody 607d203c04
Merge pull request #3170 from mokaddem/ref_graph
Extended event support and tag filtergin in the event graph
2018-04-20 13:40:48 +02:00
Sami Mokaddem 7ee1717628 Added confirmation box to draw the network based on a threshold 2018-04-20 11:20:52 +00:00
Sami Mokaddem ee1e39360e Being consistent with indentation + removed useless comment. 2018-04-20 08:46:11 +00:00
Sami Mokaddem 2ca3515f10 Feature: Possibility to filter on tags 2018-04-20 08:35:38 +00:00
iglocska 279a6459ff new: Preview the extended event ID / UUID
- Also, cleanup of the nasty event tag code
2018-04-19 13:56:50 +02:00
Sami Mokaddem 5ae1ef0dd4 Added comment 2018-04-19 11:45:49 +00:00
Sami Mokaddem c2c15ea5a5 fix: z-index popover issue in event graph 2018-04-18 08:52:42 +00:00
Sami Mokaddem 14d7d5e21d Do not clusturize if filtering is enabled + only draw hull around
extendeding event in reference scope
2018-04-18 08:33:12 +00:00
Sami Mokaddem 03a65b8eaf Added source from where the original jarvis march algorithm was taken 2018-04-17 15:28:16 +00:00
Sami Mokaddem 303ff41ea1 feature: Better support of extended event in event graph - Added a
colored region for each event extending the current event scope
2018-04-17 15:23:28 +00:00
Sami Mokaddem f0622acd2c Added custom library used by eventGraph (may be added as a submodule in
the future)
2018-04-16 12:16:53 +00:00
Sami Mokaddem 368aa2f128 feature: Added support of extended event in event graph 2018-04-16 12:02:43 +00:00
Sami Mokaddem 84346b1ff9 fix: set correct (previous) phyisic state after dragging 2018-04-16 11:29:39 +00:00
Sami Mokaddem e14df3d066 Merge branch '2.4' of https://github.com/MISP/MISP into ref_graph 2018-04-16 11:15:06 +00:00
Sami Mokaddem f017a0ccb1 fix: fitting the network more than once can make the camera bug. 2018-04-16 09:29:36 +00:00
Sami Mokaddem cd0c00384e Replaced scope rotation key typeahead by selector + removed trailling
spaces
2018-04-16 09:17:19 +00:00
StefanKelm f270a4118a
Update misp.js
Hover output on top, not to the left
2018-04-12 14:32:02 +02:00
Sami Mokaddem 0aa260406c Stop physics simulation on node drag 2018-04-10 15:43:37 +00:00
Sami Mokaddem e445c61930 ui: Added shortcuts as background 2018-04-09 14:04:40 +00:00
Sami Mokaddem 03459c611d fix: changed 'removing' text to 'hide' text to avoid confusion 2018-04-09 13:13:45 +00:00
Sami Mokaddem 0cfc1ba01f feature: Canvas contextual menu allowing to hide/edit/expand/collapse the selection 2018-04-09 13:12:27 +00:00
Sami Mokaddem e2f4aade02 Added filtering based on authorized JSON key + JSON key is displayed in the header scope badge 2018-04-09 12:07:53 +00:00
Sami Mokaddem 09127a24c5 Support of graph per JSON key (using typeahead) 2018-04-09 11:39:45 +00:00
Sami Mokaddem 6ee5419297 feature: Draft of generic graphing from any key 2018-04-09 09:12:26 +00:00
Sami Mokaddem f3b2741843 feature: Support of Tags in the event graph 2018-04-06 14:44:40 +00:00
Sami Mokaddem c76160e16b Added scope badge and minor css changes 2018-04-06 08:34:47 +00:00
Sami Mokaddem 921224ed40 Merge branch 'quick-fix-metacategory-graph' into ref_graph 2018-04-06 07:50:27 +00:00
Sami Mokaddem 57d4277dfe fix: unknown meta-category do not longer raise an exception (use a default value instead) 2018-04-06 07:37:41 +00:00
Sami Mokaddem fc168c5a35 Draft of filtering per attribute value 2018-04-05 14:21:40 +00:00
Sami Mokaddem 0ecccee108 Moved reference logique server-side + First draft of filtering capabilities 2018-04-05 10:31:26 +00:00
Sami Mokaddem 3933baf9c9 Compute graph serverside 2018-04-04 13:12:16 +00:00
Sami Mokaddem 09cf9c5080 Moved layout into Display tab + Created scope and filters (uses action_table js not added yet) DOM 2018-04-04 09:38:36 +00:00
Sami Mokaddem 3e29bc7d69 Usage of bootstrap popover instead of floating contextual menu 2018-04-03 10:03:59 +00:00
iglocska e89d7ebc16 new: Added separation between enabled feeds and feeds enabled for caching 2018-03-30 23:30:54 +02:00
Sami Mokaddem bfe043cc98 Possibility to choose the number of character to display in the label 2018-03-30 10:13:09 +00:00
Sami Mokaddem 9b2f2050c1 fix: label was not set when display filter was empty 2018-03-30 09:50:22 +00:00
Sami Mokaddem 7939dbc1a7 fix: switching back and forth between layout is behaving as expected 2018-03-30 09:32:43 +00:00
Sami Mokaddem 5bb7600224 Possibility to choose physics solver in eventGraph 2018-03-30 09:21:02 +00:00
Sami Mokaddem 00ee677dd1 Added expand/collapse all in eventGraph->display 2018-03-30 08:48:27 +00:00
Sami Mokaddem 3b18ec7c50 Possibility to search for object_relation in the event graph 2018-03-30 08:23:50 +00:00
Sami Mokaddem a15099752a Possibility to choose the object_relation to be displayed in the object's label 2018-03-30 08:14:23 +00:00
Sami Mokaddem 5e83caf8fb Added retreiving of object templates in order to let the user choose the field we want to see in the event graph 2018-03-29 16:05:19 +00:00
Sami Mokaddem 86c3c25656 Added possibility to change physics on the fly 2018-03-28 13:41:57 +00:00
Sami Mokaddem 272f5228e9 fix: physics no longer reset when the layout change 2018-03-27 13:57:27 +00:00
Sami Mokaddem 4486c71c58 Added physics toogle button for event graph 2018-03-27 13:51:25 +00:00
StefanKelm 7a36fc79ef
Update misp.js 2018-03-27 15:26:49 +02:00
Sami Mokaddem d7d6aee0eb Fix #3074: Edit button vanishes on cancelled delete 2018-03-27 09:07:16 +00:00
Sami Mokaddem c8db488489 Better support of hierachical view and clutering unreferenced nodes 2018-03-27 08:52:50 +00:00
Sami Mokaddem c6fb88d690 First draft of hierarchical layout 2018-03-26 14:18:36 +00:00
Sami Mokaddem 9d8d77503f fixed bug where the node focus was not performed if the node was already displayed 2018-03-26 11:31:03 +00:00
Sami Mokaddem 346fbdb826 When searching for a clustered item, it will uncluster it and focus the camera to it 2018-03-26 11:22:40 +00:00
Sami Mokaddem 1ae1500c51 Set correct number of childs in root node label 2018-03-26 10:23:43 +00:00
Sami Mokaddem fad6048074 Added clustering of unreferenced attributes/objects 2018-03-26 10:18:56 +00:00
Sami Mokaddem 8b529a249e
Update event-graph.js
Fixed typo in fa-mapping hex value
2018-03-23 09:47:03 +01:00
Sami Mokaddem e6269d29c0 Renamed script from references-graph to event-graph 2018-03-22 16:50:58 +00:00
Sami Mokaddem 246affd322 Directly call the callback function in edit_reference so that tha manipulation UI get back to normal directly (vis.js iiner behavior) 2018-03-22 16:19:57 +00:00
Sami Mokaddem 0fdefd916b Check if input-search has focus before executing global keyboard shortcut 2018-03-22 16:12:50 +00:00
Sami Mokaddem ee129e568f Restaured stabilization on first load 2018-03-22 16:05:49 +00:00
Sami Mokaddem c78fca0ede Added possibility to edit references on the fly + edit objects on their dedicated webpage 2018-03-22 15:53:53 +00:00
Sami Mokaddem 67fb9d1e7e Replaced on/off event function by the once function 2018-03-22 09:58:08 +00:00
Sami Mokaddem 37dca3a6cb simplified condition checking on expanding and collapsing nodes 2018-03-22 09:51:02 +00:00
Sami Mokaddem 9ebaf334ae Removed useless progressbar and simplified loading popup information 2018-03-22 09:46:29 +00:00
Sami Mokaddem fc6301dc6b fix: Support is isSiteAdmin + undeclared var + z-index 2018-03-22 08:46:54 +00:00
Sami Mokaddem 9e4af28b71 Improved FIXME comment 2018-03-21 16:55:14 +00:00
Sami Mokaddem 022c84da75 First iteration of refactoring (reference_graph.js): moved functions into classes 2018-03-21 16:24:52 +00:00
Sami Mokaddem 751115bf91 Check if the reference is valid before performing the request 2018-03-21 12:56:20 +00:00
Sami Mokaddem 1b7b2dc453 fix: collapse on object_reference + create object_reference close to the parent node when expanding 2018-03-21 12:43:52 +00:00
Sami Mokaddem c347acce3f Added fullscreen + typeahead feature to network graph 2018-03-21 12:29:34 +00:00
Sami Mokaddem da37fde042 Added characters limitation in nodes + edit shortcut 2018-03-21 12:29:34 +00:00
Sami Mokaddem a812757f73 iglocska's magic (Added kind of ajax support in attribute/edit)
C
 (\.   \      ,/)
  \(   |\     )/
  //\  | \   /\\
 (/ /\_#oo#_/\ \)
  \/\  ####  /\/
       `##'
Ojo
2018-03-21 12:29:05 +00:00
Sami Mokaddem 1057ccbf84 Improved UX (Generic popup callback + loading and progressbar) + Added shortcuts 2018-03-20 13:43:05 +00:00
Sami Mokaddem f9a78add38 Added generic popup callback + Support of item deletion in network graph. 2018-03-19 15:19:09 +00:00
Sami Mokaddem 1209954f06 Added basic popover for item addition in relation_graph 2018-03-19 14:07:51 +00:00
Sami Mokaddem 0b0eddfcc0 reset_view() fits network instead of moving to center only 2018-03-19 10:59:49 +00:00
Sami Mokaddem 78743e2896 Typos 2018-03-19 10:40:27 +00:00
Sami Mokaddem ffbd55069c Updated centralGravity so that all nodes are closer to the center 2018-03-19 10:07:32 +00:00
Sami Mokaddem 2e443dd572 Camera fits the view after initial load. 2018-03-19 09:57:26 +00:00
Sami Mokaddem a37344f459 Added call back parameter in GenericPopup 2018-03-19 09:36:09 +00:00
root a3a6a77611 Initial references graphs commit 2018-03-19 08:44:25 +00:00
Émilio Gonzalez 3510f7b745 - Added keyboard navigation with arrows/pageUp/pageDown/enter for tag selection ( Issue #3001 )
- The color when hovering over a modal element is now grey, to differentiate from blue when choosing tags using keyboard
2018-03-08 11:32:31 -05:00
Émilio Gonzalez fd62155986 Actually remove keyboard shortcuts from MISP.js 2018-03-02 08:54:12 -05:00
Émilio Gonzalez 77ce2468a5 Move keyboard shortcuts from misp.js to its own file (to regain compatibility with IE11) 2018-03-01 17:27:42 -05:00
iglocska ee6f5f46e2 fix: Fixed annoying download list only having one side clickable
- it was annoying to brigadier general @adulau
2018-02-22 12:02:34 +01:00
iglocska bb9d12bbca Merge branch 'galaxySearch' into 2.4 2018-02-18 10:13:38 +01:00
iglocska a0d7cececc new: Reowkred organisation merge workflow, #fixes 2931
- Organisation merge is now offered to the user by the edit page if a UUID was used to edit an organisation that is already in use
- Merging a local org with 1+ user(s) into an external organisation converts the target organisation into a local one
- Merging a local organisation with a logo into an organisation without one will move the current logo to over
  - caveat: this will only happen for organisations already using the new logo naming ([id].png as opposed to [name].png)
2018-02-16 16:34:12 +01:00
iglocska 3b4d88b20e fix: Fixed invalid pgp url for fetching keys from the remote server 2018-02-15 16:08:58 +01:00
iglocska 75007841df fix: Fixed the attribute selection on the event view
- Correctly select sections even on sort or other effects changing the order of elements
- Part of the keep @rommelfs happy package ;)
2018-02-10 14:06:13 +01:00
Émilio Gonzalez 4a38cb3d6a new: Add search shortcut for events and attributes + fix bug that triggered shortcuts when dropdown menus were focused 2018-02-06 10:37:56 -05:00
Alexandre Dulaunoy 6d79a08b22
fix: don't uppercase the shortcuts as the shortcuts are lowercase 2018-02-06 11:18:27 +01:00
Émilio Gonzalez 44d35fb11c new: Add keyboard shortcuts application-wide, managed using JSON files. 2018-02-05 16:27:08 -05:00
Alexandre Dulaunoy 938180c004
fix: set the default PGP keyserver to pgp.circl.lu (faster than
pgp.mit.edu)

TODO: A configuration for setting up the PGP keyserver at the MISP
instance setting.
2018-02-01 12:03:22 +01:00
iglocska 96cea0b057 new: New BasicAuth header generator for the feed add/edit views 2018-01-19 15:56:34 +01:00
iglocska fd858d627b new: Allow passing headers along with feeds
- add any arbitrary header to a feed
- can be used for authentication via basic auth for example
2018-01-19 00:28:44 +01:00
iglocska dedfea3610 new: Mass enable/disable feeds
- protecting the sanity of MISP admins since 2012!
2018-01-15 17:25:11 +01:00
iglocska 6bc936859a fix: Fixed proposal add not setting valid types for each category automatically 2017-12-28 23:43:59 +01:00
iglocska ac114be0d9 fix: Fixed z-index of correlation popovers 2017-12-22 17:35:05 +01:00
iglocska 84f5e8ff5a fix: Collapse attribute correlations 2017-12-22 17:22:49 +01:00
iglocska 05a89f5e87 Merge branch '2.4' into feature/tag_filter_rework 2017-11-30 22:28:35 +01:00
iglocska 2910e16c3b fix: Fixed an issue where proposal quick edits didn't work for normal users, fixes #2685 2017-11-28 11:45:16 +01:00
Milan Pikula aeee784901 fix: settings editor not working on touch devices 2017-11-22 16:04:35 +01:00
iglocska a659664447 fix: Fixed a reflected XSS in the sharing group creator tool
- Fixed a reflected XSS in the sharing group editor that requires malicious organisation names

- Low impact due to the following requirements:
  - organisation names with malicious org names (JS in the orgname)
  - sharing group editor user has to manually add an organisation to the list that has javascript in the org name
  - only vulnerable view is the editor itself, so the impact is limited to
    users that manually add organisations with malicious names to the list themselves / edit such sharing groups

- As reported by Dawid Czarnecki
2017-11-13 09:25:44 +01:00
iglocska ef6f5b490c Revert "Fix: Attribute type list when editing should be the category's one if already selected"
This reverts commit 27f30aae3b.
2017-10-20 15:56:18 +02:00
ppanero 27f30aae3b Fix: Attribute type list when editing should be the category's one if already selected 2017-10-20 11:28:23 +02:00
iglocska ca6f4a783a fix: Fix to a potential reflected XSS on the quickDelete
- low impact, XSS required user confirmation of malicious payload

- as reported by Or Hanuka (PALANTIR)
2017-10-09 15:40:40 +02:00
iglocska fa7d3fdb36 new: First round of updates to the correlation engine ready
- node deletion temporarily disabled until a bug is resolved
2017-10-08 19:50:28 +02:00
iglocska cd9fe1883e fix: Some cleanup of the attribute filtering 2017-10-05 11:59:59 +02:00
Tristan METAYER 66a43f5511 Add an imput for search on all attributes in an event.
field to search can be modify in administration page.
2017-10-04 19:07:58 +02:00
iglocska 36f6c9685d fix: Invalid uuid used in the objectreferences add form 2017-09-27 15:12:45 +02:00
root cb608817e1 Add field filter for galaxy cluster 2017-09-25 17:34:26 +02:00
iglocska bb99706cf3 new: Various object template improvements
- allow multiple versions of a template to be stored at the same time
- select which version is the primary version of a template
- disable/enable templates
- edit objects with one of the older versions of a template if the object's version requires that

- various UI / bug fixes
2017-09-18 00:38:30 +02:00
iglocska b3a60d84e2 fix: Fixed the missing refresh on attribute tags when a new tag is added 2017-09-14 09:34:42 +02:00
iglocska 5552d7c030 new: Several new features
- added multiple flag among other things
2017-08-29 18:28:18 +02:00
iglocska d3d6566b16 new: Various new features for the objects 2017-08-23 11:57:40 +02:00
iglocska 961bc76393 Merge branch '2.4' into objects_wip 2017-08-21 10:17:16 +02:00
iglocska 859d6e1c46 new: Added object relations 2017-08-21 10:13:19 +02:00
iglocska d0b4e8eb90 fix: Fetch PGP key button goes into endless loading if no key was found 2017-08-18 11:30:53 +02:00
iglocska aa07299abe Merge branch '2.4' into objects_wip 2017-08-10 07:29:50 +02:00
iglocska 0e7dd2eddc new: Added first iteration of object references and other changes
- various fixes
- rework of the pagination library
2017-08-09 17:53:25 +02:00
iglocska d8123b18d9 fix: Fixes to issues introduced by the ajax JSON rework, fixes #2384 2017-08-09 17:32:47 +02:00
iglocska 8f6b53ee24 new: Progress on the Objects
- Fixed UI elements in the event view
- Added object-aware filtering to the event view
- Objects can now be deleted and viewed once deleted
  - object sanitisation if the setting is set is implemented
- Edit objects directly from the interface (if the template exists)
- Various other fixes
2017-08-06 18:23:24 +02:00
iglocska 3b004d5686 Merge branch '2.4' into objects_wip 2017-08-03 11:20:34 +02:00
iglocska a2d716c4b1 fix: Potential fix to the template element adding issue throwing ajax only exceptions 2017-07-31 13:51:23 +02:00
iglocska d2e1a8e259 new: More work on the objects
- mostly on adding / validating / saving objects including the UI for it
2017-07-02 20:32:30 +02:00
iglocska d10c7cd4b0 Merge branch '2.4' into objects_wip 2017-07-02 00:08:14 +02:00
iglocska ee1c1c5de9 new: Further progress on the objects 2017-07-02 00:05:15 +02:00
edhoedt 50c653753c Attribute tags: fixing automatic refresh after deleting/adding a tag
Attribute_id_tr class should actually be ShadowAttribute_id_tr
2017-06-29 16:30:50 +02:00
iglocska a724b69a12 Merge branch 'badattch' into 2.4 2017-06-18 10:13:40 +02:00
iglocska c9784cc4f8 fix: Moved attachment access diagnostic tool to attributes controller 2017-06-18 10:12:48 +02:00
iglocska 6fad375685 new: Mass delete events
- simply use the multi select on the event index via the UI
- for the API, simply POST to /events/delete with a payload in the following format:
  `{"id": [15, 16, 17]}`

- if you've accidentally deleted all your events using this functionality, feel free to contact @rommelfs or contact the NSA for backups
2017-06-01 09:45:10 +02:00
iglocska bc9aa60577 new: Added filtering to the tag index
- also globally fixed the filter issues when filtering from an index with a different pagination position than the first page
2017-05-29 14:51:29 +02:00
root c0ba6a1646 Changing some texts 2017-05-11 15:12:26 +02:00
root e489f431d9 Adding small diagnostic on Server Setting > Diagnostics page to check if some attachments
referenced in database doesn't exist on filesystem.
2017-05-11 14:11:08 +02:00