# software.log

**URL:** <https://community.zeek.org/t/software-log/2925>\
**Category:** Zeek\
**Created:** [December 4, 2013, 4:36pm UTC](https://community.zeek.org/t/software-log/2925 "2013-12-04T16:36:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vlad\_Grigorescu2](https://avatars.discourse-cdn.com/v4/letter/v/c4cdca/32.png) [@Vlad\_Grigorescu2](https://community.zeek.org/u/Vlad_Grigorescu2)\
**Post date:** [December 4, 2013, 4:36pm UTC](https://community.zeek.org/t/software-log/2925/1 "2013-12-04T16:36:36Z")

</div>

John,

Have you looked at policy/frameworks/software/vulnerable.bro[1]? It seems like it implements what you're looking to do. For example, here's what I have in my local.bro:

> @load frameworks/software/vulnerable  
> global java\_1\_6\_vuln: Software::VulnerableVersionRange = [$max=[$major=1,$minor=6,$minor2=0,$minor3=48]];  
> global java\_1\_7\_vuln: Software::VulnerableVersionRange = [$min=[$major=1,$minor=7], $max=[$major=1,$minor=7,$minor2=0,$minor3=22]];
> 
> redef Software::vulnerable\_versions += {  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;["Java"] = set(java\_1\_6\_vuln, java\_1\_7\_vuln)  
> };

See also: [https://github.com/bro/bro/blob/master/NEWS#L313](https://github.com/bro/bro/blob/master/NEWS#L313)

What this does is define two ranges of vulnerable Java versions. The first is anything prior to 1.6.0.48 (including 1.5, 1.4, etc.). The second is anything between 1.7.0.0 and 1.7.0.22.

Of course, if you only care about 1.7.0.40, you can just define that as the min/max.

Does that help? Or was that not the functionality you were looking for?

&nbsp;&nbsp;--Vlad

[1] - \<[https://github.com/bro/bro/blob/master/scripts/policy/frameworks/software/vulnerable.bro&gt](https://github.com/bro/bro/blob/master/scripts/policy/frameworks/software/vulnerable.bro&gt);

---

<div class="post-metadata">

**Author:** ![John\_Babio1](https://avatars.discourse-cdn.com/v4/letter/j/da6949/32.png) [@John\_Babio1](https://community.zeek.org/u/John_Babio1)\
**Post date:** [December 4, 2013, 4:40pm UTC](https://community.zeek.org/t/software-log/2925/2 "2013-12-04T16:40:23Z")

</div>

Yes This is exactly what I was looking for. I just didn¹t know how to go  
about it. Thank you Vlad!

---

<div class="post-metadata">

**Author:** ![James\_inthe\_box](https://avatars.discourse-cdn.com/v4/letter/j/6f9a4e/32.png) [@James\_inthe\_box](https://community.zeek.org/u/James_inthe_box)\
**Post date:** [December 4, 2013, 4:44pm UTC](https://community.zeek.org/t/software-log/2925/3 "2013-12-04T16:44:38Z")

</div>

Care to send it to the list? I'd like to see it myself...thank you.

James

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/zeek/original/1X/f09d732bc2cc7c7cc7e35db67cf4e1d5233ce7a7.png) [@system](https://community.zeek.org/u/system)\
**Post date:** [May 6, 2022, 3:41pm UTC](https://community.zeek.org/t/software-log/2925/4 "2022-05-06T15:41:26Z")

</div>

Closed on May 6, 2022, 3:41pm UTC


