ATTACK-Python-Client
ATTACK-Python-Client copied to clipboard
AttributeError: 'function' object has no attribute 'query' when using get_techniques_used_by_group_software
I'm unable to use get_techniques_used_by_group_software. Latest version of library is installed.
When using
group_name = lift.get_group_by_alias('APT12')
techniques_group_software = lift.get_techniques_used_by_group_software(group_name[0])
this error is raised
File ~/Documents/playbooks/lib/python3.10/site-packages/attackcti/attack_api.py:1787, in attack_client.get_techniques_used_by_group_software(self, stix_object, stix_format)
1781 # Get all used by the software that is used by group
1782 filter_objects = [
1783 Filter('type', '=', 'relationship'),
1784 Filter('relationship_type', '=', 'uses'),
1785 Filter('source_ref', 'in', [r.target_ref for r in software_relationships])
1786 ]
-> 1787 software_uses = self.COMPOSITE_DS.query.query(filter_objects)
1788 # Get all techniques used by the software that is used by group
1789 filter_techniques = [
1790 Filter('type', '=', 'attack-pattern'),
1791 Filter('id', 'in', [s.target_ref for s in software_uses])
1792 ]
AttributeError: 'function' object has no attribute 'query'