Skip to content

Python wrapper around Strobes Graphql. Create, update and delete assets, vulnerabilities and more using the client.

Notifications You must be signed in to change notification settings

Poatan222/strobes-gql-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

StrobesGQLClient

StrobesGQL client is a python wrapper around Strobes graphql

Schema Types

Table of Contents

Query

Field Argument Type Description
allGroups GroupPaginatedType
organizationId UUID
page Int
pageSize Int
getCurrentTenant TenantOrganizationType
allEngagements EngagementPaginatedType
organizationId UUID
searchQuery String
orderBy [String]
assetId Int
page Int
pageSize Int
allAssets AssetPaginatedType
organizationId UUID
searchQuery String
orderBy [String]
groupId Int
page Int
pageSize Int
exportReportType String
allBugs BugPaginatedType
organizationId UUID
searchQuery String
orderBy [String]
page Int
pageSize Int
exportReportType String

Mutation

Field Argument Type Description
addGroup AddGroupMutation
assetIds [Int]
name String
organizationId UUID
updateGroup UpdateGroupMutation
assetIds [Int]
groupId Int
name String
organizationId UUID
groupBulkDelete BulkDeleteGroupMutation
ids [Int]
organizationId UUID
orgMemberRoleBulkUpdate BulkUpdateOrgMemberRoleMutation
organizationId UUID
role Int
userIds [Int]
teamMemberRoleBulkUpdate BulkUpdateTeamMemberRoleMutation
organizationId UUID
role Int
teamId Int
userIds [Int]
orgMemberRoleBulkDelete BulkDeleteOrgMemberRoleMutation
organizationId UUID
userIds [Int]
teamMemberRoleBulkDelete BulkDeleteTeamMemberRoleMutation
organizationId UUID
teamId Int
userIds [Int]
bugBulkUpdate BulkUpdateBugMutation
cvss Float
ids [Int]
organizationId UUID
severity Int
state Int
bugBulkAssignment BulkBugAssignmentMutation
ids [Int]
organizationId UUID
userIds [Int]
bugBulkUnassignment BulkBugUnAssignmentMutation
ids [Int]
organizationId UUID
userIds [Int]
bugBulkUpdateTags BulkUpdateBugTagMutation
ids [Int]
organizationId UUID
tags [String]
bugBulkUpdateCve BulkUpdateBugCVEMutation
cves [String]
ids [Int]
organizationId UUID
bugBulkDelete BulkDeleteBugMutation
ids [Int]
organizationId UUID
addBulkComment AddBulkCommentsMutation
comment String
ids [Int]
internal Boolean
organizationId UUID
assetsBulkUpdate BulkUpdateAssetsMutation
exposed Int
ids [Int]
organizationId UUID
sensitivity Int
assetsBulkMerge BulkMergeAssetsMutation
ids [Int]
organizationId UUID
sourceAsset Int
assetsBulkLink BulkLinkAssetsMutation
ids [Int]
organizationId UUID
sourceAsset Int
assetsBulkDelete BulkDeleteAssetsMutation
ids [Int]
organizationId UUID

Objects

AddBulkCommentsMutation

Field Argument Type Description
bugs [BugType]

AddGroupMutation

Field Argument Type Description
groups [GroupsType]

AssetPaginatedType

Field Argument Type Description
page Int
totalPages Int
pageSize Int
totalCount Int
hasNext Boolean
hasPrev Boolean
objects [AssetType]

AssetType

Field Argument Type Description
id ID!
name String!
target String
exposed Int!
type Int!
cloudType Int!
organization TenantOrganizationType
disabled Boolean!
sensitivity Int!
keys String!
data JSONString
createdBy UserType
linkedAssets [AssetType!]!
additionalInfo JSONString
scan ScanLog
tempId UUID
created DateTime!
updated DateTime!
tags [TagType!]!
location String
linedAssets [AssetType!]!
groupAssets [GroupsType!]!
engagementAssets [EngagementType!]!
configurationAsset [ConfigurationType!]!
bugSet [BugType!]!
ipaddress String
hostname String
macAddress String
os String

BugPaginatedType

Field Argument Type Description
page Int
totalPages Int
pageSize Int
totalCount Int
hasNext Boolean
hasPrev Boolean
objects [BugType]

BugType

Field Argument Type Description
state Int!
severity Int!
bugLevel Int!
id ID!
title String!
description String!
mitigation String!
stepsToReproduce String!
objectId Int
hash String
duplicate BugType
cwe [CWEType!]!
cve [CVEType!]!
cvss Float!
attackVector String
bugTags [TagType!]!
assignedTo [UserType!]!
organization TenantOrganizationType
asset AssetType
team TeamType
reportedBy UserType
dueDate DateTime
slaViolated Boolean!
hasUserDefinedDueDate Boolean!
exploitAvailable Boolean!
exploitInfo JSONString
patchAvailable Boolean!
patchInfo JSONString
prioritizationScore Float!
prioritizationScoreCalculated Boolean!
drillDownScore JSONString
connector ConnectorType
configurationName String
connectorConfig ConfigurationType
scan ScanLog
scannerRawResponse JSONString
vulnerableSince DateTime
engagement EngagementType
created DateTime!
updated DateTime!
originalBug [BugType!]!
ipaddress String
hostname String
macAddress String
os String

BulkBugAssignmentMutation

Field Argument Type Description
bugs [BugType]

BulkBugUnAssignmentMutation

Field Argument Type Description
bugs [BugType]

BulkDeleteAssetsMutation

Field Argument Type Description
assets [AssetType]

BulkDeleteBugMutation

Field Argument Type Description
bugs [BugType]

BulkDeleteGroupMutation

Field Argument Type Description
groups [GroupsType]

BulkDeleteOrgMemberRoleMutation

Field Argument Type Description
members [MemberType]

BulkDeleteTeamMemberRoleMutation

Field Argument Type Description
members [MemberType]

BulkLinkAssetsMutation

Field Argument Type Description
assets [AssetType]

BulkMergeAssetsMutation

Field Argument Type Description
assets [AssetType]

BulkUpdateAssetsMutation

Field Argument Type Description
assets [AssetType]

BulkUpdateBugCVEMutation

Field Argument Type Description
bugs [BugType]

BulkUpdateBugMutation

Field Argument Type Description
bugs [BugType]

BulkUpdateBugTagMutation

Field Argument Type Description
bugs [BugType]

BulkUpdateOrgMemberRoleMutation

Field Argument Type Description
users [MemberType]

BulkUpdateTeamMemberRoleMutation

Field Argument Type Description
users [MemberType]

CVEType

Field Argument Type Description
id ID!
title String!
description String!
cvssV2Data JSONString!
cvssV3Data JSONString!
cvss Float!
cveId String
cveTags [TagType!]!
relatedCwe [CWEType!]!
exploitAvailable Boolean!
exploitInfo JSONString!
patchAvailable Boolean!
patchInfo JSONString!
zeroDayAvailable Boolean!
isWormable Boolean!
tiRawResponse JSONString!
summary String!
published DateTime
lastModified DateTime
created DateTime!
updated DateTime!
bugCve [BugType!]!

CWEType

Field Argument Type Description
id ID!
cweId String
type String!
cweTags [CVEType!]!
bugCwe [BugType!]!

ConfigurationType

Field Argument Type Description
id ID!
name String!
connector ConnectorType
organization TenantOrganizationType
asset AssetType
team TeamType
objectId Int
key String
remoteAccessId UUID
remoteAccessUrl String
createdBy UserType
isDefault Boolean!
created DateTime!
updated DateTime!
extra JSONString
scanlogSet [ScanLog!]!
bugSet [BugType!]!

ConnectorType

Field Argument Type Description
id ID!
slug String!
name String!
description String
shortDescription String
usage String
image String!
link String!
type ParentConnectorsType!
isInternal Boolean!
isActive Boolean!
created DateTime!
updated DateTime!
configurationsSet [ConfigurationType!]!
parentConnector [BugType!]!

EngagementPaginatedType

Field Argument Type Description
page Int
totalPages Int
pageSize Int
totalCount Int
hasNext Boolean
hasPrev Boolean
objects [EngagementType]

EngagementType

Field Argument Type Description
id ID!
service String
package String
assessmentData JSONString
state Int!
securityPosture Int!
assets [AssetType!]!
createdBy UserType
organization TenantOrganizationType
scheduledDate DateTime
created DateTime!
updated DateTime!
bugEngagement [BugType!]!

GroupPaginatedType

Field Argument Type Description
page Int
totalPages Int
pageSize Int
totalCount Int
hasNext Boolean
hasPrev Boolean
objects [GroupsType]

GroupsType

Field Argument Type Description
id ID!
name String
organization TenantOrganizationType
assets [AssetType!]!
createdBy UserType
created DateTime!

MemberType

Field Argument Type Description
id ID!
user UserType
organization TenantOrganizationType!
role String

ScanLog

Field Argument Type Description
id ID!
config String
finished DateTime
connectorName String

TagType

Field Argument Type Description
id ID!
slug String
name String!
organization TenantOrganizationType
created DateTime!
updated DateTime!
assetTags [AssetType!]!
cveTags [CVEType!]!
bugTags [BugType!]!

TeamType

Field Argument Type Description
id ID!
name String!
organization TenantOrganizationType
created DateTime!
updated DateTime!
configurationTeam [ConfigurationType!]!
team [BugType!]!

TenantOrganizationType

Field Argument Type Description
schemaName String!
id ID!
name String!
isPrimary Boolean!
industry String!
members [UserType!]!
image String
employeeSize Int
purposeOfUse Int!
created DateTime!
updated DateTime!
organizationmemberSet [MemberType!]!
assetSet [AssetType!]!
groupSet [GroupsType!]!
teamSet [TeamType!]!
tagsSet [TagType!]!
engagementsSet [EngagementType!]!
configurationOrganization [ConfigurationType!]!
bugSet [BugType!]!
domain String
isVerified Boolean

UpdateGroupMutation

Field Argument Type Description
groups [GroupsType]

UserType

Field Argument Type Description
password String!
lastLogin DateTime
isSuperuser Boolean!

Designates that this user has all permissions without explicitly assigning them.

id ID!
email String!
firstName String!
lastName String!
created DateTime!
updated DateTime!
isSuperadmin Boolean!
isStaff Boolean!
isActive Boolean!

Designates whether this user should be treated as active. Un-select this instead of deleting accounts.

activationId UUID!
orgMembers [TenantOrganizationType!]!
organizationmemberSet [MemberType!]!
assetSet [AssetType!]!
groupSet [GroupsType!]!
engagementsSet [EngagementType!]!
configurationsSet [ConfigurationType!]!
assignedTo [BugType!]!
reportedBy [BugType!]!

Enums

ParentConnectorsType

An enumeration.

Value Description
A_0

Misc

A_1

SAST scanner

A_2

DAST scanner

A_3

Tracking

A_4

Notification

A_5

Import Report

A_6

Network scanner

A_7

Custom Connector

A_8

Asset Inventory

A_9

Cloud Integrations

A_10

Container Integrations

A_11

Import CSV

A_12

Export Report

Scalars

Boolean

The Boolean scalar type represents true or false.

DateTime

The DateTime scalar type represents a DateTime value as specified by iso8601.

Float

The Float scalar type represents signed double-precision fractional values as specified by IEEE 754.

ID

The ID scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as "4") or integer (such as 4) input value will be accepted as an ID.

Int

The Int scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31 - 1) and 2^31 - 1 since represented in JSON as double-precision floating point numbers specifiedby IEEE 754.

JSONString

Allows use of a JSON String for input / output from the GraphQL schema.

Use of this type is not recommended as you lose the benefits of having a defined, static schema (one of the key benefits of GraphQL).

String

The String scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.

UUID

Leverages the internal Python implmeentation of UUID (uuid.UUID) to provide native UUID objects in fields, resolvers and input.

About

Python wrapper around Strobes Graphql. Create, update and delete assets, vulnerabilities and more using the client.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages