{"action":"created","issue":{"url":"https://api.github.com/repos/CIRCL/PyMISP/issues/54","repository_url":"https://api.github.com/repos/CIRCL/PyMISP","labels_url":"https://api.github.com/repos/CIRCL/PyMISP/issues/54/labels{/name}","comments_url":"https://api.github.com/repos/CIRCL/PyMISP/issues/54/comments","events_url":"https://api.github.com/repos/CIRCL/PyMISP/issues/54/events","html_url":"https://github.com/CIRCL/PyMISP/pull/54","id":169534219,"number":54,"title":"Added OpenIOC and MISP xml based automated attribute population","user":{"login":"KennethAdamMiller","id":2431966,"avatar_url":"https://avatars.githubusercontent.com/u/2431966?v=3","gravatar_id":"","url":"https://api.github.com/users/KennethAdamMiller","html_url":"https://github.com/KennethAdamMiller","followers_url":"https://api.github.com/users/KennethAdamMiller/followers","following_url":"https://api.github.com/users/KennethAdamMiller/following{/other_user}","gists_url":"https://api.github.com/users/KennethAdamMiller/gists{/gist_id}","starred_url":"https://api.github.com/users/KennethAdamMiller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KennethAdamMiller/subscriptions","organizations_url":"https://api.github.com/users/KennethAdamMiller/orgs","repos_url":"https://api.github.com/users/KennethAdamMiller/repos","events_url":"https://api.github.com/users/KennethAdamMiller/events{/privacy}","received_events_url":"https://api.github.com/users/KennethAdamMiller/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-05T05:51:48Z","updated_at":"2016-08-20T18:07:13Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/CIRCL/PyMISP/pulls/54","html_url":"https://github.com/CIRCL/PyMISP/pull/54","diff_url":"https://github.com/CIRCL/PyMISP/pull/54.diff","patch_url":"https://github.com/CIRCL/PyMISP/pull/54.patch"},"body":"So far, populating attributes through the API is a manual process, with the only exception being an out of date example demonstrating how to map IOC xml attributes to MISP xml attributes. MISP's web UI has an interface to allow users to upload their OpenIOC xml files for importing, but this same functionality is not replicated in the PyMISP apis.\r\n\r\nI needed this functionality, so I tested the examples, and then tested the new apis after I added them to the PyMISP api.\r\nFor each IOC or MISP xml api offered, the user can either pass in a filename or a BytesIO object that can be manipulated with read. This prevents the user who has the xml information in memory from having to needlessly save it to disk in the case that an open call is made within the api by splitting the interpretation of the xml from the input type requirements.\r\n\r\nOne new dependency is BeautifulSoup 4. Likely the example ioc2misp.py could be updated, but I have what I need."},"comment":{"url":"https://api.github.com/repos/CIRCL/PyMISP/issues/comments/241214785","html_url":"https://github.com/CIRCL/PyMISP/pull/54#issuecomment-241214785","issue_url":"https://api.github.com/repos/CIRCL/PyMISP/issues/54","id":241214785,"user":{"login":"KennethAdamMiller","id":2431966,"avatar_url":"https://avatars.githubusercontent.com/u/2431966?v=3","gravatar_id":"","url":"https://api.github.com/users/KennethAdamMiller","html_url":"https://github.com/KennethAdamMiller","followers_url":"https://api.github.com/users/KennethAdamMiller/followers","following_url":"https://api.github.com/users/KennethAdamMiller/following{/other_user}","gists_url":"https://api.github.com/users/KennethAdamMiller/gists{/gist_id}","starred_url":"https://api.github.com/users/KennethAdamMiller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KennethAdamMiller/subscriptions","organizations_url":"https://api.github.com/users/KennethAdamMiller/orgs","repos_url":"https://api.github.com/users/KennethAdamMiller/repos","events_url":"https://api.github.com/users/KennethAdamMiller/events{/privacy}","received_events_url":"https://api.github.com/users/KennethAdamMiller/received_events","type":"User","site_admin":false},"created_at":"2016-08-20T18:07:13Z","updated_at":"2016-08-20T18:07:13Z","body":"@Rafiot Please mention me in your replies so that my gmail route the email to the correct category."}}
{"actor":{"display_login":"KennethAdamMiller"}}