repo stringlengths 6 47 | file_url stringlengths 77 269 | file_path stringlengths 5 186 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-07 08:35:43 2026-01-07 08:55:24 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/risks/builtin/unnecessary_data_asset_rule.go | pkg/risks/builtin/unnecessary_data_asset_rule.go | package builtin
import (
"sort"
"github.com/threagile/threagile/pkg/types"
)
type UnnecessaryDataAssetRule struct{}
func NewUnnecessaryDataAssetRule() *UnnecessaryDataAssetRule {
return &UnnecessaryDataAssetRule{}
}
func (*UnnecessaryDataAssetRule) Category() *types.RiskCategory {
return &types.RiskCategory{
... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/risks/builtin/unnecessary_data_asset_rule_test.go | pkg/risks/builtin/unnecessary_data_asset_rule_test.go | package builtin
import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/threagile/threagile/pkg/types"
)
func TestUnnecessaryDataAssetRuleGenerateRisksEmptyModelNotRisksCreated(t *testing.T) {
rule := NewUnnecessaryDataAssetRule()
risks, err := rule.GenerateRisks(&types.Model{})
assert.Nil(t, err... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/risks/builtin/missing_hardening_rule.go | pkg/risks/builtin/missing_hardening_rule.go | package builtin
import (
"strconv"
"github.com/threagile/threagile/pkg/types"
)
type MissingHardeningRule struct {
raaLimit int
raaLimitReduced int
}
func NewMissingHardeningRule() *MissingHardeningRule {
return &MissingHardeningRule{raaLimit: 55, raaLimitReduced: 40}
}
func (r *MissingHardeningRule) C... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/risks/builtin/missing_file_validation_rule.go | pkg/risks/builtin/missing_file_validation_rule.go | package builtin
import (
"github.com/threagile/threagile/pkg/types"
)
type MissingFileValidationRule struct{}
func NewMissingFileValidationRule() *MissingFileValidationRule {
return &MissingFileValidationRule{}
}
func (*MissingFileValidationRule) Category() *types.RiskCategory {
return &types.RiskCategory{
ID:... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/risks/builtin/xml_external_entity_rule_test.go | pkg/risks/builtin/xml_external_entity_rule_test.go | package builtin
import (
"fmt"
"testing"
"github.com/stretchr/testify/assert"
"github.com/threagile/threagile/pkg/types"
)
func TestXmlExternalEntityRuleGenerateRisksEmptyModelNotRisksCreated(t *testing.T) {
rule := NewXmlExternalEntityRule()
risks, err := rule.GenerateRisks(&types.Model{})
assert.Nil(t, er... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/risks/builtin/unencrypted_asset_rule.go | pkg/risks/builtin/unencrypted_asset_rule.go | package builtin
import (
"github.com/threagile/threagile/pkg/types"
)
type UnencryptedAssetRule struct{}
func NewUnencryptedAssetRule() *UnencryptedAssetRule {
return &UnencryptedAssetRule{}
}
func (*UnencryptedAssetRule) Category() *types.RiskCategory {
return &types.RiskCategory{
ID: "unencrypted-asset",
... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/risks/builtin/missing_waf_rule.go | pkg/risks/builtin/missing_waf_rule.go | package builtin
import (
"github.com/threagile/threagile/pkg/types"
)
type MissingWafRule struct{}
func NewMissingWafRule() *MissingWafRule {
return &MissingWafRule{}
}
func (*MissingWafRule) Category() *types.RiskCategory {
return &types.RiskCategory{
ID: "missing-waf",
Title: "Missing Web Application Fi... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/risks/builtin/helpers_test.go | pkg/risks/builtin/helpers_test.go | package builtin
import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/threagile/threagile/pkg/types"
)
func Test_IsAcrossTrustBoundaryNetworkOnly_EmptyDataReturnFalse(t *testing.T) {
cl := &types.CommunicationLink{
SourceId: "source",
TargetId: "target",
}
parsedModel := &types.Model{}
res... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/risks/builtin/missing_vault_isolation_rule_test.go | pkg/risks/builtin/missing_vault_isolation_rule_test.go | package builtin
import (
"fmt"
"testing"
"github.com/stretchr/testify/assert"
"github.com/threagile/threagile/pkg/types"
)
func TestMissingVaultIsolationRuleGenerateRisksEmptyModelNotRisksCreated(t *testing.T) {
rule := NewMissingVaultIsolationRule()
risks, err := rule.GenerateRisks(&types.Model{})
assert.N... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/risks/builtin/unguarded_access_from_internet_rule_test.go | pkg/risks/builtin/unguarded_access_from_internet_rule_test.go | package builtin
import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/threagile/threagile/pkg/types"
)
func TestUnguardedAccessFromInternetRuleGenerateRisksEmptyModelNotRisksCreated(t *testing.T) {
rule := NewUnguardedAccessFromInternetRule()
risks, err := rule.GenerateRisks(&types.Model{})
ass... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/risks/builtin/unnecessary_communication_link_rule_test.go | pkg/risks/builtin/unnecessary_communication_link_rule_test.go | package builtin
import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/threagile/threagile/pkg/types"
)
func TestUnnecessaryCommunicationLinkRuleGenerateRisksEmptyModelNotRisksCreated(t *testing.T) {
rule := NewUnnecessaryCommunicationLinkRule()
risks, err := rule.GenerateRisks(&types.Model{})
a... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/risks/builtin/wrong_communication_link_content_rule_test.go | pkg/risks/builtin/wrong_communication_link_content_rule_test.go | package builtin
import (
"fmt"
"testing"
"github.com/stretchr/testify/assert"
"github.com/threagile/threagile/pkg/types"
)
func TestWrongCommunicationLinkContentRuleGenerateRisksEmptyModelNotRisksCreated(t *testing.T) {
rule := NewWrongCommunicationLinkContentRule()
risks, err := rule.GenerateRisks(&types.Mod... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/risks/builtin/xml_external_entity_rule.go | pkg/risks/builtin/xml_external_entity_rule.go | package builtin
import (
"github.com/threagile/threagile/pkg/types"
)
type XmlExternalEntityRule struct{}
func NewXmlExternalEntityRule() *XmlExternalEntityRule {
return &XmlExternalEntityRule{}
}
func (*XmlExternalEntityRule) Category() *types.RiskCategory {
return &types.RiskCategory{
ID: "xml-exter... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/risks/builtin/search_query_injection_rule.go | pkg/risks/builtin/search_query_injection_rule.go | package builtin
import (
"github.com/threagile/threagile/pkg/types"
)
type SearchQueryInjectionRule struct{}
func NewSearchQueryInjectionRule() *SearchQueryInjectionRule {
return &SearchQueryInjectionRule{}
}
func (*SearchQueryInjectionRule) Category() *types.RiskCategory {
return &types.RiskCategory{
ID: "... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/risks/builtin/missing_cloud_hardening_rule_test.go | pkg/risks/builtin/missing_cloud_hardening_rule_test.go | package builtin
import (
"fmt"
"testing"
"github.com/stretchr/testify/assert"
"github.com/threagile/threagile/pkg/types"
)
func TestMissingCloudHardeningRuleGenerateRisksEmptyModelNotRisksCreated(t *testing.T) {
rule := NewMissingCloudHardeningRule()
risks, err := rule.GenerateRisks(&types.Model{})
assert.N... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/risks/builtin/missing_identity_propagation_rule_test.go | pkg/risks/builtin/missing_identity_propagation_rule_test.go | package builtin
import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/threagile/threagile/pkg/types"
)
func TestMissingIdentityPropagationRuleGenerateRisksEmptyModelNotRisksCreated(t *testing.T) {
rule := NewMissingIdentityPropagationRule()
risks, err := rule.GenerateRisks(&types.Model{})
asser... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/risks/builtin/container_platform_escape_rule_test.go | pkg/risks/builtin/container_platform_escape_rule_test.go | package builtin
import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/threagile/threagile/pkg/types"
)
func TestContainerPlatformEscapeRuleGenerateRisksEmptyModelNotRisksCreated(t *testing.T) {
rule := NewContainerPlatformEscapeRule()
risks, err := rule.GenerateRisks(&types.Model{})
assert.Nil(... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/risks/builtin/service_registry_poisoning_rule_test.go | pkg/risks/builtin/service_registry_poisoning_rule_test.go | package builtin
import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/threagile/threagile/pkg/types"
)
func TestServiceRegistryPoisoningRuleGenerateRisksEmptyModelNotRisksCreated(t *testing.T) {
rule := NewServiceRegistryPoisoningRule()
risks, err := rule.GenerateRisks(&types.Model{})
assert.Ni... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/risks/builtin/code_backdooring_rule_test.go | pkg/risks/builtin/code_backdooring_rule_test.go | package builtin
import (
"sort"
"testing"
"github.com/stretchr/testify/assert"
"github.com/threagile/threagile/pkg/types"
)
func TestCodeBackdooringRuleGenerateRisksEmptyModelNotRisksCreated(t *testing.T) {
rule := NewCodeBackdooringRule()
risks, err := rule.GenerateRisks(&types.Model{})
assert.Nil(t, err)
... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/risks/builtin/wrong_trust_boundary_content_rule.go | pkg/risks/builtin/wrong_trust_boundary_content_rule.go | package builtin
import (
"github.com/threagile/threagile/pkg/types"
)
type WrongTrustBoundaryContentRule struct{}
func NewWrongTrustBoundaryContentRule() *WrongTrustBoundaryContentRule {
return &WrongTrustBoundaryContentRule{}
}
func (*WrongTrustBoundaryContentRule) Category() *types.RiskCategory {
return &types... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/risks/builtin/unnecessary_technical_asset_rule.go | pkg/risks/builtin/unnecessary_technical_asset_rule.go | package builtin
import (
"github.com/threagile/threagile/pkg/types"
)
type UnnecessaryTechnicalAssetRule struct{}
func NewUnnecessaryTechnicalAssetRule() *UnnecessaryTechnicalAssetRule {
return &UnnecessaryTechnicalAssetRule{}
}
func (*UnnecessaryTechnicalAssetRule) Category() *types.RiskCategory {
return &types... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/risks/builtin/missing_identity_propagation_rule.go | pkg/risks/builtin/missing_identity_propagation_rule.go | package builtin
import (
"github.com/threagile/threagile/pkg/types"
)
type MissingIdentityPropagationRule struct{}
func NewMissingIdentityPropagationRule() *MissingIdentityPropagationRule {
return &MissingIdentityPropagationRule{}
}
func (*MissingIdentityPropagationRule) Category() *types.RiskCategory {
return &... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/risks/builtin/path_traversal_rule.go | pkg/risks/builtin/path_traversal_rule.go | package builtin
import (
"github.com/threagile/threagile/pkg/types"
)
type PathTraversalRule struct{}
func NewPathTraversalRule() *PathTraversalRule {
return &PathTraversalRule{}
}
func (*PathTraversalRule) Category() *types.RiskCategory {
return &types.RiskCategory{
ID: "path-traversal",
Title: "Path-Tra... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/risks/builtin/missing_vault_isolation_rule.go | pkg/risks/builtin/missing_vault_isolation_rule.go | package builtin
import (
"github.com/threagile/threagile/pkg/types"
)
type MissingVaultIsolationRule struct{}
func NewMissingVaultIsolationRule() *MissingVaultIsolationRule {
return &MissingVaultIsolationRule{}
}
func (*MissingVaultIsolationRule) Category() *types.RiskCategory {
return &types.RiskCategory{
ID:... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/risks/builtin/missing_build_infrastructure_rule.go | pkg/risks/builtin/missing_build_infrastructure_rule.go | package builtin
import (
"github.com/threagile/threagile/pkg/types"
)
type MissingBuildInfrastructureRule struct{}
func NewMissingBuildInfrastructureRule() *MissingBuildInfrastructureRule {
return &MissingBuildInfrastructureRule{}
}
func (*MissingBuildInfrastructureRule) Category() *types.RiskCategory {
return &... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/risks/builtin/incomplete_model_rule_test.go | pkg/risks/builtin/incomplete_model_rule_test.go | package builtin
import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/threagile/threagile/pkg/types"
)
func TestIncompleteModelRuleGenerateRisksEmptyModelNotRisksCreated(t *testing.T) {
rule := NewIncompleteModelRule()
risks, err := rule.GenerateRisks(&types.Model{})
assert.Nil(t, err)
assert.... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/risks/builtin/missing_vault_rule.go | pkg/risks/builtin/missing_vault_rule.go | package builtin
import (
"github.com/threagile/threagile/pkg/types"
)
type MissingVaultRule struct{}
func NewMissingVaultRule() *MissingVaultRule {
return &MissingVaultRule{}
}
func (*MissingVaultRule) Category() *types.RiskCategory {
return &types.RiskCategory{
ID: "missing-vault",
Title: "Missing Vault ... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/risks/builtin/wrong_trust_boundary_content_rule_test.go | pkg/risks/builtin/wrong_trust_boundary_content_rule_test.go | package builtin
import (
"fmt"
"testing"
"github.com/stretchr/testify/assert"
"github.com/threagile/threagile/pkg/types"
)
func TestWrongTrustBoundaryContentRuleGenerateRisksEmptyModelNotRisksCreated(t *testing.T) {
rule := NewWrongTrustBoundaryContentRule()
risks, err := rule.GenerateRisks(&types.Model{})
... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/risks/builtin/cross_site_request_forgery_rule.go | pkg/risks/builtin/cross_site_request_forgery_rule.go | package builtin
import (
"github.com/threagile/threagile/pkg/types"
)
type CrossSiteRequestForgeryRule struct{}
func NewCrossSiteRequestForgeryRule() *CrossSiteRequestForgeryRule {
return &CrossSiteRequestForgeryRule{}
}
func (*CrossSiteRequestForgeryRule) Category() *types.RiskCategory {
return &types.RiskCateg... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/risks/builtin/unencrypted_asset_rule_test.go | pkg/risks/builtin/unencrypted_asset_rule_test.go | package builtin
import (
"fmt"
"testing"
"github.com/stretchr/testify/assert"
"github.com/threagile/threagile/pkg/types"
)
func TestUnencryptedAssetRuleGenerateRisksEmptyModelNotRisksCreated(t *testing.T) {
rule := NewUnencryptedAssetRule()
risks, err := rule.GenerateRisks(&types.Model{})
assert.Nil(t, err)... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/risks/builtin/push_instead_of_pull_deployment_rule.go | pkg/risks/builtin/push_instead_of_pull_deployment_rule.go | package builtin
import (
"github.com/threagile/threagile/pkg/types"
)
type PushInsteadPullDeploymentRule struct{}
func NewPushInsteadPullDeploymentRule() *PushInsteadPullDeploymentRule {
return &PushInsteadPullDeploymentRule{}
}
func (*PushInsteadPullDeploymentRule) Category() *types.RiskCategory {
return &types... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/risks/builtin/incomplete_model_rule.go | pkg/risks/builtin/incomplete_model_rule.go | package builtin
import (
"github.com/threagile/threagile/pkg/types"
)
type IncompleteModelRule struct{}
func NewIncompleteModelRule() *IncompleteModelRule {
return &IncompleteModelRule{}
}
func (*IncompleteModelRule) Category() *types.RiskCategory {
return &types.RiskCategory{
ID: "incomplete-model",
Titl... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/risks/builtin/unguarded_access_from_internet_rule.go | pkg/risks/builtin/unguarded_access_from_internet_rule.go | package builtin
import (
"sort"
"github.com/threagile/threagile/pkg/types"
)
type UnguardedAccessFromInternetRule struct{}
func NewUnguardedAccessFromInternetRule() *UnguardedAccessFromInternetRule {
return &UnguardedAccessFromInternetRule{}
}
func (*UnguardedAccessFromInternetRule) Category() *types.RiskCatego... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/risks/builtin/dos_risky_access_across_trust_boundary_rule_test.go | pkg/risks/builtin/dos_risky_access_across_trust_boundary_rule_test.go | package builtin
import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/threagile/threagile/pkg/types"
)
func TestDosRiskyAccessAcrossTrustBoundaryRuleGenerateRisksEmptyModelNotRisksCreated(t *testing.T) {
rule := NewDosRiskyAccessAcrossTrustBoundaryRule()
risks, err := rule.GenerateRisks(&types.Mo... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/risks/builtin/search_query_injection_rule_test.go | pkg/risks/builtin/search_query_injection_rule_test.go | package builtin
import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/threagile/threagile/pkg/types"
)
func TestSearchQueryInjectionRuleGenerateRisksEmptyModelNotRisksCreated(t *testing.T) {
rule := NewSearchQueryInjectionRule()
risks, err := rule.GenerateRisks(&types.Model{})
assert.Nil(t, err... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/risks/builtin/dos_risky_access_across_trust_boundary_rule.go | pkg/risks/builtin/dos_risky_access_across_trust_boundary_rule.go | package builtin
import (
"github.com/threagile/threagile/pkg/types"
)
type DosRiskyAccessAcrossTrustBoundaryRule struct{}
func NewDosRiskyAccessAcrossTrustBoundaryRule() *DosRiskyAccessAcrossTrustBoundaryRule {
return &DosRiskyAccessAcrossTrustBoundaryRule{}
}
func (*DosRiskyAccessAcrossTrustBoundaryRule) Categor... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/risks/builtin/unchecked_deployment_rule_test.go | pkg/risks/builtin/unchecked_deployment_rule_test.go | package builtin
import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/threagile/threagile/pkg/types"
)
func TestUncheckedDeploymentRuleGenerateRisksEmptyModelNotRisksCreated(t *testing.T) {
rule := NewUncheckedDeploymentRule()
risks, err := rule.GenerateRisks(&types.Model{})
assert.Nil(t, err)
... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/risks/builtin/mixed_targets_on_shared_runtime_rule_test.go | pkg/risks/builtin/mixed_targets_on_shared_runtime_rule_test.go | package builtin
import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/threagile/threagile/pkg/types"
)
func TestMixedTargetsOnSharedRuntimeRuleGenerateRisksEmptyModelNotRisksCreated(t *testing.T) {
rule := NewMixedTargetsOnSharedRuntimeRule()
risks, err := rule.GenerateRisks(&types.Model{})
ass... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/risks/builtin/container_baseimage_backdooring_rule_test.go | pkg/risks/builtin/container_baseimage_backdooring_rule_test.go | package builtin
import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/threagile/threagile/pkg/types"
)
func TestContainerBaseImageBackdooringRuleGenerateRisksEmptyModelNotRisksCreated(t *testing.T) {
rule := NewContainerBaseImageBackdooringRule()
risks, err := rule.GenerateRisks(&types.Model{})
... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/risks/builtin/unencrypted_communication_rule_test.go | pkg/risks/builtin/unencrypted_communication_rule_test.go | package builtin
import (
"fmt"
"testing"
"github.com/stretchr/testify/assert"
"github.com/threagile/threagile/pkg/types"
)
func TestUnencryptedCommunicationRuleGenerateRisksEmptyModelNotRisksCreated(t *testing.T) {
rule := NewUnencryptedCommunicationRule()
risks, err := rule.GenerateRisks(&types.Model{})
as... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/risks/builtin/unnecessary_communication_link_rule.go | pkg/risks/builtin/unnecessary_communication_link_rule.go | package builtin
import (
"github.com/threagile/threagile/pkg/types"
)
type UnnecessaryCommunicationLinkRule struct{}
func NewUnnecessaryCommunicationLinkRule() *UnnecessaryCommunicationLinkRule {
return &UnnecessaryCommunicationLinkRule{}
}
func (*UnnecessaryCommunicationLinkRule) Category() *types.RiskCategory {... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/risks/builtin/cross_site_scripting_rule.go | pkg/risks/builtin/cross_site_scripting_rule.go | package builtin
import (
"github.com/threagile/threagile/pkg/types"
)
type CrossSiteScriptingRule struct{}
func NewCrossSiteScriptingRule() *CrossSiteScriptingRule {
return &CrossSiteScriptingRule{}
}
func (*CrossSiteScriptingRule) Category() *types.RiskCategory {
return &types.RiskCategory{
ID: "cross-site... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/risks/builtin/sql_nosql_injection_rule.go | pkg/risks/builtin/sql_nosql_injection_rule.go | package builtin
import (
"github.com/threagile/threagile/pkg/types"
)
type SqlNoSqlInjectionRule struct{}
func NewSqlNoSqlInjectionRule() *SqlNoSqlInjectionRule {
return &SqlNoSqlInjectionRule{}
}
func (*SqlNoSqlInjectionRule) Category() *types.RiskCategory {
return &types.RiskCategory{
ID: "sql-nosql-injec... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/risks/builtin/missing_waf_rule_test.go | pkg/risks/builtin/missing_waf_rule_test.go | package builtin
import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/threagile/threagile/pkg/types"
)
func TestMissingWafRuleGenerateRisksEmptyModelNotRisksCreated(t *testing.T) {
rule := NewMissingWafRule()
risks, err := rule.GenerateRisks(&types.Model{})
assert.Nil(t, err)
assert.Empty(t, r... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/risks/builtin/unnecessary_technical_asset_rule_test.go | pkg/risks/builtin/unnecessary_technical_asset_rule_test.go | package builtin
import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/threagile/threagile/pkg/types"
)
func TestUnnecessaryTechnicalAssetRuleGenerateRisksEmptyModelNotRisksCreated(t *testing.T) {
rule := NewUnnecessaryTechnicalAssetRule()
risks, err := rule.GenerateRisks(&types.Model{})
assert.... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/risks/builtin/missing_build_infrastructure_rule_test.go | pkg/risks/builtin/missing_build_infrastructure_rule_test.go | package builtin
import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/threagile/threagile/pkg/types"
)
func TestMissingBuildInfrastructureRuleGenerateRisksEmptyModelNoRisksCreated(t *testing.T) {
rule := NewMissingBuildInfrastructureRule()
risks, err := rule.GenerateRisks(&types.Model{})
assert... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/risks/builtin/missing_identity_store_rule.go | pkg/risks/builtin/missing_identity_store_rule.go | package builtin
import (
"github.com/threagile/threagile/pkg/types"
)
type MissingIdentityStoreRule struct{}
func NewMissingIdentityStoreRule() *MissingIdentityStoreRule {
return &MissingIdentityStoreRule{}
}
func (*MissingIdentityStoreRule) Category() *types.RiskCategory {
return &types.RiskCategory{
ID: "... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/risks/builtin/missing_cloud_hardening_rule.go | pkg/risks/builtin/missing_cloud_hardening_rule.go | package builtin
import (
"slices"
"strings"
"github.com/threagile/threagile/pkg/types"
)
type MissingCloudHardeningRule struct{}
func NewMissingCloudHardeningRule() *MissingCloudHardeningRule {
return &MissingCloudHardeningRule{}
}
func (*MissingCloudHardeningRule) Category() *types.RiskCategory {
return &typ... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/risks/builtin/ldap_injection_rule_test.go | pkg/risks/builtin/ldap_injection_rule_test.go | package builtin
import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/threagile/threagile/pkg/types"
)
func TestLdapInjectionRuleGenerateRisksEmptyModelNotRisksCreated(t *testing.T) {
rule := NewLdapInjectionRule()
risks, err := rule.GenerateRisks(&types.Model{})
assert.Nil(t, err)
assert.Empt... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/risks/builtin/missing_network_segmentation_rule_test.go | pkg/risks/builtin/missing_network_segmentation_rule_test.go | package builtin
import (
"fmt"
"testing"
"github.com/stretchr/testify/assert"
"github.com/threagile/threagile/pkg/types"
)
func TestMissingNetworkSegmentationRuleGenerateRisksEmptyModelNotRisksCreated(t *testing.T) {
rule := NewMissingNetworkSegmentationRule()
risks, err := rule.GenerateRisks(&types.Model{})
... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/risks/builtin/unnecessary_data_transfer_rule_test.go | pkg/risks/builtin/unnecessary_data_transfer_rule_test.go | package builtin
import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/threagile/threagile/pkg/types"
)
func TestUnnecessaryDataTransferRuleGenerateRisksEmptyModelNotRisksCreated(t *testing.T) {
rule := NewUnnecessaryDataTransferRule()
risks, err := rule.GenerateRisks(&types.Model{})
assert.Nil(... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/risks/builtin/missing_vault_rule_test.go | pkg/risks/builtin/missing_vault_rule_test.go | package builtin
import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/threagile/threagile/pkg/types"
)
func TestMissingVaultRuleGenerateRisksEmptyModelRiskCreated(t *testing.T) {
rule := NewMissingVaultRule()
risks, err := rule.GenerateRisks(&types.Model{})
assert.Nil(t, err)
assert.Len(t, ris... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/risks/builtin/missing_identity_provider_isolation_rule.go | pkg/risks/builtin/missing_identity_provider_isolation_rule.go | package builtin
import (
"github.com/threagile/threagile/pkg/types"
)
type MissingIdentityProviderIsolationRule struct{}
func NewMissingIdentityProviderIsolationRule() *MissingIdentityProviderIsolationRule {
return &MissingIdentityProviderIsolationRule{}
}
func (*MissingIdentityProviderIsolationRule) Category() *... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/risks/builtin/unnecessary_data_transfer_rule.go | pkg/risks/builtin/unnecessary_data_transfer_rule.go | package builtin
import (
"sort"
"github.com/threagile/threagile/pkg/types"
)
type UnnecessaryDataTransferRule struct{}
func NewUnnecessaryDataTransferRule() *UnnecessaryDataTransferRule {
return &UnnecessaryDataTransferRule{}
}
func (*UnnecessaryDataTransferRule) Category() *types.RiskCategory {
return &types.... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/risks/builtin/service_registry_poisoning_rule.go | pkg/risks/builtin/service_registry_poisoning_rule.go | package builtin
import (
"github.com/threagile/threagile/pkg/types"
)
type ServiceRegistryPoisoningRule struct{}
func NewServiceRegistryPoisoningRule() *ServiceRegistryPoisoningRule {
return &ServiceRegistryPoisoningRule{}
}
func (*ServiceRegistryPoisoningRule) Category() *types.RiskCategory {
return &types.Risk... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/risks/builtin/cross_site_request_forgery_rule_test.go | pkg/risks/builtin/cross_site_request_forgery_rule_test.go | package builtin
import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/threagile/threagile/pkg/types"
)
func TestCrossSiteRequestForgeryRuleGenerateRisksEmptyModelNotRisksCreated(t *testing.T) {
rule := NewCrossSiteRequestForgeryRule()
risks, err := rule.GenerateRisks(&types.Model{})
assert.Nil(... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/risks/builtin/missing_hardening_rule_test.go | pkg/risks/builtin/missing_hardening_rule_test.go | package builtin
import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/threagile/threagile/pkg/types"
)
func TestMissingHardeningRuleGenerateRisksEmptyModelNotRisksCreated(t *testing.T) {
rule := NewMissingHardeningRule()
risks, err := rule.GenerateRisks(&types.Model{})
assert.Nil(t, err)
asser... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/risks/builtin/missing_network_segmentation_rule.go | pkg/risks/builtin/missing_network_segmentation_rule.go | package builtin
import (
"sort"
"github.com/threagile/threagile/pkg/types"
)
type MissingNetworkSegmentationRule struct {
raaLimit int
}
func NewMissingNetworkSegmentationRule() *MissingNetworkSegmentationRule {
return &MissingNetworkSegmentationRule{raaLimit: 50}
}
func (*MissingNetworkSegmentationRule) Categ... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/risks/builtin/server_side_request_forgery_rule_test.go | pkg/risks/builtin/server_side_request_forgery_rule_test.go | package builtin
import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/threagile/threagile/pkg/types"
)
func TestServerSideRequestForgeryRuleGenerateRisksEmptyModelNotRisksCreated(t *testing.T) {
rule := NewServerSideRequestForgeryRule()
risks, err := rule.GenerateRisks(&types.Model{})
assert.Ni... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/risks/builtin/missing_identity_provider_isolation_rule_test.go | pkg/risks/builtin/missing_identity_provider_isolation_rule_test.go | package builtin
import (
"fmt"
"testing"
"github.com/stretchr/testify/assert"
"github.com/threagile/threagile/pkg/types"
)
func TestMissingIdentityProviderIsolationRuleGenerateRisksEmptyModelNotRisksCreated(t *testing.T) {
rule := NewMissingIdentityProviderIsolationRule()
risks, err := rule.GenerateRisks(&typ... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/risks/builtin/missing_authentication_second_factor_rule.go | pkg/risks/builtin/missing_authentication_second_factor_rule.go | package builtin
import (
"github.com/threagile/threagile/pkg/types"
)
type MissingAuthenticationSecondFactorRule struct {
missingAuthenticationRule *MissingAuthenticationRule
}
func NewMissingAuthenticationSecondFactorRule(missingAuthenticationRule *MissingAuthenticationRule) *MissingAuthenticationSecondFactorRule... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/risks/builtin/unguarded_direct_datastore_access_rule.go | pkg/risks/builtin/unguarded_direct_datastore_access_rule.go | package builtin
import (
"github.com/threagile/threagile/pkg/types"
)
type UnguardedDirectDatastoreAccessRule struct{}
func NewUnguardedDirectDatastoreAccessRule() *UnguardedDirectDatastoreAccessRule {
return &UnguardedDirectDatastoreAccessRule{}
}
func (*UnguardedDirectDatastoreAccessRule) Category() *types.Risk... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/risks/builtin/unencrypted_communication_rule.go | pkg/risks/builtin/unencrypted_communication_rule.go | package builtin
import (
"slices"
"github.com/threagile/threagile/pkg/types"
)
type UnencryptedCommunicationRule struct{}
func NewUnencryptedCommunicationRule() *UnencryptedCommunicationRule {
return &UnencryptedCommunicationRule{}
}
func (*UnencryptedCommunicationRule) Category() *types.RiskCategory {
return ... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/risks/builtin/accidental_secret_leak_rule.go | pkg/risks/builtin/accidental_secret_leak_rule.go | package builtin
import (
"fmt"
"strings"
"github.com/threagile/threagile/pkg/types"
)
type AccidentalSecretLeakRule struct{}
func NewAccidentalSecretLeakRule() *AccidentalSecretLeakRule {
return &AccidentalSecretLeakRule{}
}
func (*AccidentalSecretLeakRule) Category() *types.RiskCategory {
return &types.RiskC... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/risks/builtin/server_side_request_forgery_rule.go | pkg/risks/builtin/server_side_request_forgery_rule.go | package builtin
import (
"github.com/threagile/threagile/pkg/types"
)
type ServerSideRequestForgeryRule struct{}
func NewServerSideRequestForgeryRule() *ServerSideRequestForgeryRule {
return &ServerSideRequestForgeryRule{}
}
func (*ServerSideRequestForgeryRule) Category() *types.RiskCategory {
return &types.Risk... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/risks/builtin/sql_nosql_injection_rule_test.go | pkg/risks/builtin/sql_nosql_injection_rule_test.go | package builtin
import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/threagile/threagile/pkg/types"
)
func TestSqlNoSqlInjectionRuleGenerateRisksEmptyModelNotRisksCreated(t *testing.T) {
rule := NewSqlNoSqlInjectionRule()
risks, err := rule.GenerateRisks(&types.Model{})
assert.Nil(t, err)
ass... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/risks/builtin/unchecked_deployment_rule.go | pkg/risks/builtin/unchecked_deployment_rule.go | package builtin
import (
"github.com/threagile/threagile/pkg/types"
)
type UncheckedDeploymentRule struct{}
func NewUncheckedDeploymentRule() *UncheckedDeploymentRule {
return &UncheckedDeploymentRule{}
}
func (*UncheckedDeploymentRule) Category() *types.RiskCategory {
return &types.RiskCategory{
ID: "unche... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/risks/builtin/path_traversal_rule_test.go | pkg/risks/builtin/path_traversal_rule_test.go | package builtin
import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/threagile/threagile/pkg/types"
)
func TestPathTraversalRuleGenerateRisksEmptyModelNotRisksCreated(t *testing.T) {
rule := NewPathTraversalRule()
risks, err := rule.GenerateRisks(&types.Model{})
assert.Nil(t, err)
assert.Empt... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/risks/builtin/missing_authentication_rule_test.go | pkg/risks/builtin/missing_authentication_rule_test.go | package builtin
import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/threagile/threagile/pkg/types"
)
func TestMissingAuthenticationRuleGenerateRisksEmptyModelNotRisksCreated(t *testing.T) {
rule := NewMissingAuthenticationRule()
risks, err := rule.GenerateRisks(&types.Model{})
assert.Nil(t, e... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/examples/examples.go | pkg/examples/examples.go | /*
Copyright © 2023 NAME HERE <EMAIL ADDRESS>
*/
package examples
import (
"fmt"
"io"
"os"
"path/filepath"
)
func CreateExampleModelFile(appFolder, outputDir, inputFile string) error {
_, err := copyFile(filepath.Join(appFolder, "threagile-example-model.yaml"), filepath.Join(outputDir, "threagile-example-model.... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/server/server.go | pkg/server/server.go | /*
Copyright © 2023 NAME HERE <EMAIL ADDRESS>
*/
package server
import (
"fmt"
"log"
"net/http"
"os"
"path/filepath"
"sort"
"strconv"
"strings"
"sync"
"github.com/gin-gonic/gin"
"github.com/threagile/threagile/pkg/model"
"github.com/threagile/threagile/pkg/types"
)
type serverConfigReader interface {
... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/server/hash.go | pkg/server/hash.go | /*
Copyright © 2023 NAME HERE <EMAIL ADDRESS>
*/
package server
import (
"crypto/sha512"
"encoding/hex"
"fmt"
"hash/fnv"
)
func xor(key []byte, xor []byte) []byte {
if len(key) != len(xor) {
panic(fmt.Errorf("key length not matching XOR length"))
}
result := make([]byte, len(xor))
for i, b := range key {
... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/server/zip.go | pkg/server/zip.go | /*
Copyright © 2023 NAME HERE <EMAIL ADDRESS>
*/
package server
import (
"archive/zip"
"fmt"
"io"
"os"
"path/filepath"
"strings"
)
// ZipFiles compresses one or many files into a single zip archive file.
// Param 1: filename is the output zip file's name.
// Param 2: files is a list of files to add to the zip.... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/server/execute.go | pkg/server/execute.go | /*
Copyright © 2023 NAME HERE <EMAIL ADDRESS>
*/
package server
import (
"fmt"
"io"
"log"
"net/http"
"os"
"os/exec"
"path/filepath"
"strconv"
"strings"
"github.com/gin-gonic/gin"
"github.com/threagile/threagile/pkg/input"
"github.com/threagile/threagile/pkg/model"
"github.com/threagile/threagile/pkg/ris... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/server/progress-reporter.go | pkg/server/progress-reporter.go | package server
import (
"fmt"
"log"
)
type DefaultProgressReporter struct {
Verbose bool
SuppressError bool
}
func (r DefaultProgressReporter) Info(a ...any) {
if r.Verbose {
fmt.Println(a...)
}
}
func (DefaultProgressReporter) Warn(a ...any) {
fmt.Println(a...)
}
func (r DefaultProgressReporter) Er... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/server/report.go | pkg/server/report.go | /*
Copyright © 2023 NAME HERE <EMAIL ADDRESS>
*/
package server
import (
"log"
"net/http"
"os"
"path/filepath"
"strconv"
"strings"
"github.com/gin-gonic/gin"
)
type responseType int
const (
dataFlowDiagram responseType = iota
dataAssetDiagram
reportPDF
risksExcel
tagsExcel
risksJSON
technicalAssetsJS... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/server/model.go | pkg/server/model.go | /*
Copyright © 2023 NAME HERE <EMAIL ADDRESS>
*/
package server
import (
"bytes"
"compress/gzip"
"crypto/aes"
"crypto/cipher"
"crypto/rand"
"fmt"
"io"
"log"
"net/http"
"os"
"path/filepath"
"sort"
"strconv"
"strings"
"sync"
"time"
"gopkg.in/yaml.v3"
"github.com/gin-gonic/gin"
"github.com/google/uu... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | true |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/server/token.go | pkg/server/token.go | /*
Copyright © 2023 NAME HERE <EMAIL ADDRESS>
*/
package server
import (
"crypto/rand"
"encoding/base64"
"fmt"
"log"
"net/http"
"os"
"path/filepath"
"strings"
"time"
"github.com/gin-gonic/gin"
)
const keySize = 32
type keyHeader struct {
Key string `header:"key"`
}
type timeoutStruct struct {
xorRand ... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/input/technical-asset.go | pkg/input/technical-asset.go | package input
import "fmt"
type TechnicalAsset struct {
ID string `yaml:"id,omitempty" json:"id,omitempty"`
Description string `yaml:"description,omitempty" json:"description,omitempty"`
Type string ... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/input/communication-link.go | pkg/input/communication-link.go | package input
import "fmt"
type CommunicationLink struct {
Target string `yaml:"target,omitempty" json:"target,omitempty"`
Description string `yaml:"description,omitempty" json:"description,omitempty"`
Protocol string `yaml:"protocol,omitempty" json:"protocol,omitempt... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/input/risk.go | pkg/input/risk.go | package input
import "fmt"
type RiskIdentified struct {
Severity string `yaml:"severity,omitempty" json:"severity,omitempty"`
ExploitationLikelihood string `yaml:"exploitation_likelihood,omitempty" json:"exploitation_likelihood,omitempty"`
ExploitationImpact string `yam... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/input/shared-runtime.go | pkg/input/shared-runtime.go | package input
import "fmt"
type SharedRuntime struct {
ID string `yaml:"id,omitempty" json:"id,omitempty"`
Description string `yaml:"description,omitempty" json:"description,omitempty"`
Tags []string `yaml:"tags,omitempty" json:"tag,omitempty"`
TechnicalAssetsR... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/input/risk-category.go | pkg/input/risk-category.go | package input
import (
"fmt"
"strings"
)
type RiskCategory struct {
ID string `yaml:"id,omitempty" json:"id,omitempty"`
Title string `json:"title,omitempty" yaml:"title,omitempty"`
Description string ... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/input/overview.go | pkg/input/overview.go | package input
type Overview struct {
Description string `yaml:"description,omitempty" json:"description,omitempty"`
Images []map[string]string `yaml:"images,omitempty" json:"images,omitempty"` // yes, array of map here, as array keeps the order of the image keys
}
func (what *Overview) Merge(other... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/input/risk-tracking.go | pkg/input/risk-tracking.go | package input
import "fmt"
type RiskTracking struct {
Status string `yaml:"status,omitempty" json:"status,omitempty"`
Justification string `yaml:"justification,omitempty" json:"justification,omitempty"`
Ticket string `yaml:"ticket,omitempty" json:"ticket,omitempty"`
Date string `yaml:"date,... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/input/model.go | pkg/input/model.go | /*
Copyright © 2023 NAME HERE <EMAIL ADDRESS>
*/
package input
import (
"fmt"
"log"
"os"
"path/filepath"
"slices"
"sort"
"strings"
"github.com/mpvl/unique"
"gopkg.in/yaml.v3"
)
// === Model Type Stuff ======================================
type Model struct { // TODO: Eventually remove this and directly ... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/input/strings.go | pkg/input/strings.go | package input
import (
"fmt"
"gopkg.in/yaml.v3"
"slices"
"strings"
)
const (
lineSeparator = "\n<br><br>\n"
)
type Strings struct {
}
func (what *Strings) MergeSingleton(first string, second string) (string, error) {
if len(first) > 0 {
if len(second) > 0 {
if !strings.EqualFold(first, second) {
retu... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/input/author.go | pkg/input/author.go | package input
import (
"fmt"
"sort"
"strings"
)
type Author struct {
Name string `yaml:"name,omitempty" json:"name,omitempty"`
Contact string `yaml:"contact,omitempty" json:"contact,omitempty"`
Homepage string `yaml:"homepage,omitempty" json:"homepage,omitempty"`
}
func (what *Author) Merge(other Author) ... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/input/trust-boundary.go | pkg/input/trust-boundary.go | package input
import "fmt"
type TrustBoundary struct {
ID string `yaml:"id,omitempty" json:"id,omitempty"`
Description string `yaml:"description,omitempty" json:"description,omitempty"`
Type string `yaml:"type,omitempty" json:"type,omitempty"`
Tags ... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/input/data-asset.go | pkg/input/data-asset.go | package input
import "fmt"
type DataAsset struct {
ID string `yaml:"id,omitempty" json:"id,omitempty"`
Description string `yaml:"description,omitempty" json:"description,omitempty"`
Usage string `yaml:"usage,omitempty" json:"usage,omitempty"`
Tags ... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/macros/seed-tags-macro.go | pkg/macros/seed-tags-macro.go | package macros
import (
"sort"
"strconv"
"github.com/mpvl/unique"
"github.com/threagile/threagile/pkg/input"
"github.com/threagile/threagile/pkg/types"
)
type SeedTagsMacro struct {
}
func NewSeedTags() *SeedTagsMacro {
return &SeedTagsMacro{}
}
func (*SeedTagsMacro) GetMacroDetails() MacroDetails {
return... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/macros/macros.go | pkg/macros/macros.go | /*
Copyright © 2023 NAME HERE <EMAIL ADDRESS>
*/
package macros
import (
"bufio"
"fmt"
"io"
"os"
"path/filepath"
"strconv"
"strings"
"github.com/threagile/threagile/pkg/input"
"github.com/threagile/threagile/pkg/types"
"gopkg.in/yaml.v3"
)
type Macros interface {
GetMacroDetails() MacroDetails
GetNextQu... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/macros/pretty-print-macro.go | pkg/macros/pretty-print-macro.go | package macros
import (
"github.com/threagile/threagile/pkg/input"
"github.com/threagile/threagile/pkg/types"
)
type PrettyPrintMacro struct {
}
func NewPrettyPrint() *PrettyPrintMacro {
return &PrettyPrintMacro{}
}
func (*PrettyPrintMacro) GetMacroDetails() MacroDetails {
return MacroDetails{
ID: "p... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/macros/add-vault-macro.go | pkg/macros/add-vault-macro.go | package macros
import (
"fmt"
"sort"
"strings"
"github.com/threagile/threagile/pkg/input"
"github.com/threagile/threagile/pkg/types"
)
type AddVaultMacro struct {
macroState map[string][]string
questionsAnswered []string
withinTrustBoundary bool
createNewTrustBoundary bool
}
const creat... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/macros/add-build-pipeline-macro.go | pkg/macros/add-build-pipeline-macro.go | package macros
import (
"fmt"
"sort"
"strings"
"github.com/threagile/threagile/pkg/input"
"github.com/threagile/threagile/pkg/types"
)
type AddBuildPipeline struct {
macroState map[string][]string
questionsAnswered []string
codeInspectionUsed bool
containerTechUsed bool
withinTrus... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | true |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/macros/remove-unused-tags-macro.go | pkg/macros/remove-unused-tags-macro.go | package macros
import (
"sort"
"strconv"
"github.com/mpvl/unique"
"github.com/threagile/threagile/pkg/input"
"github.com/threagile/threagile/pkg/types"
)
type removeUnusedTagsMacro struct {
}
func newRemoveUnusedTags() *removeUnusedTagsMacro {
return &removeUnusedTagsMacro{}
}
func (*removeUnusedTagsMacro) ... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/macros/seed-risk-tracking-macro.go | pkg/macros/seed-risk-tracking-macro.go | package macros
import (
"sort"
"strconv"
"github.com/threagile/threagile/pkg/input"
"github.com/threagile/threagile/pkg/types"
)
type SeedRiskTrackingMacro struct {
}
func NewSeedRiskTracking() *SeedRiskTrackingMacro {
return &SeedRiskTrackingMacro{}
}
func (*SeedRiskTrackingMacro) GetMacroDetails() MacroDeta... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/types/helpers.go | pkg/types/helpers.go | /*
Copyright © 2023 NAME HERE <EMAIL ADDRESS>
*/
package types
import (
"regexp"
"strings"
)
func MakeID(val string) string {
reg, _ := regexp.Compile("[^A-Za-z0-9]+")
return strings.Trim(reg.ReplaceAllString(strings.ToLower(val), "-"), "- ")
}
func contains(a []string, x string) bool {
for _, n := range a {
... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/types/protocol_test.go | pkg/types/protocol_test.go | /*
Copyright © 2023 NAME HERE <EMAIL ADDRESS>
*/
package types
import (
"fmt"
"testing"
"github.com/stretchr/testify/assert"
)
type ParseProtocolTest struct {
input string
expected Protocol
expectedError error
}
func TestParseProtocol(t *testing.T) {
testCases := map[string]ParseProtocolTest{
... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/types/risks.go | pkg/types/risks.go | /*
Copyright © 2023 NAME HERE <EMAIL ADDRESS>
*/
package types
import "sort"
func ReduceToOnlyStillAtRisk(risks []*Risk) []*Risk {
filteredRisks := make([]*Risk, 0)
for _, risk := range risks {
if risk.RiskStatus.IsStillAtRisk() {
filteredRisks = append(filteredRisks, risk)
}
}
return filteredRisks
}
fun... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.