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

does searching by otype=hash work? #53

Closed
giovino opened this issue Nov 10, 2015 · 2 comments
Closed

does searching by otype=hash work? #53

giovino opened this issue Nov 10, 2015 · 2 comments

Comments

@giovino
Copy link
Contributor

giovino commented Nov 10, 2015

You can see a md5 in this query result:

cif -q 353f3b54de9ecfd82c63a2aeaf1c3b9c
tlp  |group   |reporttime          |observable                      |cc|asn|confidence|tags  |description|rdata|provider      |altid_tlp|altid
amber|everyone|2015-11-10T18:04:59Z|353f3b54de9ecfd82c63a2aeaf1c3b9c|  |   |25        |search|           |     |root@localhost|         |     
amber|everyone|2015-11-10T18:05:04Z|353f3b54de9ecfd82c63a2aeaf1c3b9c|  |   |25        |search|           |     |root@localhost|         |   

but you don't see it when querying by otype hash.

cif -v --otype hash -c 5
[2015-11-10T13:12:22,714Z][INFO]: starting up client...
[2015-11-10T13:12:22,714Z][INFO]: running search...
[2015-11-10T13:12:23,210Z][INFO]: status: 200
[2015-11-10T13:12:23,211Z][INFO]: no results found...

If it isn't suppose to work, we may want to add a "unsupported otype" to the client.

@wesyoung
Copy link
Member

what does:

$ cif -v --otype md5 -c 5

result in?

ref: https://github.com/csirtgadgets/massive-octo-spice/blob/develop/src/lib/CIF/Plugin/Hash.pm#L32

the resolved otype should show up as one of those iirc...

@giovino
Copy link
Contributor Author

giovino commented Nov 25, 2015

sadly i even had some of this doc'd but forgot about it.

I expanded on it here and maybe made it a little more clear.

https://github.com/csirtgadgets/massive-octo-spice/wiki/Introducing-the-CIF-client#by-observable-type.

I'm closing this issue as I think it is done.

@giovino giovino closed this as completed Nov 25, 2015
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

No branches or pull requests

2 participants