MCPcopy Create free account

hub / github.com/blacksmith-infosec/risk-assessments / functions

Functions147 in github.com/blacksmith-infosec/risk-assessments

↓ 35 callersFunctionuseAppState
()
src/context/AppStateContext.tsx:281
↓ 30 callersFunctionvalidateDomain
(input: string)
src/utils/domainValidation.ts:19
↓ 25 callersFunctiontrackEvent
(eventName: string, properties?: EventProperties)
src/utils/analytics.ts:15
↓ 24 callersFunctionvalidateImportJSON
(jsonString: string)
src/utils/importValidation.ts:94
↓ 22 callersFunctionclickLink
(link: HTMLElement)
src/components/TrackedLink/TrackedLink.test.tsx:11
↓ 20 callersFunctioncreateMockAppState
(overrides: Partial<MockAppStateValue> = {})
src/test-utils/appStateHelpers.tsx:30
↓ 20 callersMethodset
* Store scan result in cache
src/utils/scannerCache.ts:46
↓ 16 callersFunctioncreateSampleScore
(percent: number = 75)
src/test-utils/appStateHelpers.tsx:55
↓ 16 callersMethodget
* Get cached scan result if available and not expired
src/utils/scannerCache.ts:27
↓ 16 callersFunctiongetDkimSelectors
(domain: string)
src/utils/dkimSelectorsService.ts:12
↓ 15 callersFunctioncomputeScore
(answers: Record<string, string>, questions: Question[])
src/utils/scoring.ts:17
↓ 14 callersFunctionrenderIssueWithLinks
(text: string, index: number)
src/utils/text.tsx:4
↓ 13 callersFunctionmigrateAnswers
( oldAnswers: Record<string, string>, rawQuestions: RawQuestion[], t: (key: string) => string )
src/utils/answerMigration.ts:30
↓ 13 callersFunctionsaveDkimSelectors
(domain: string, selectors: string[])
src/utils/dkimSelectorsService.ts:46
↓ 13 callersFunctionvalidateJSONComplexity
( obj: unknown, maxDepth: number = 10, maxKeys: number = 10000, currentDepth: number = 0, keyCount:
src/utils/importValidation.ts:14
↓ 12 callersFunctiongenerateWordHTML
(options: ExportReportOptions)
src/utils/exportReport.ts:18
↓ 11 callersMethodcheckRateLimit
* Check if request is rate limited * Returns { allowed: boolean, retryAfter?: number }
src/utils/scannerCache.ts:57
↓ 11 callersFunctioninterpretSecurityHeadersResult
(scanner: ExecutedScannerResult)
src/utils/scanners/securityHeadersScanner.ts:145
↓ 11 callersFunctiontrackImport
(importType: string, success: boolean, properties?: EventProperties)
src/utils/analytics.ts:79
↓ 10 callersFunctioncreateMockScanner
(data: unknown, issues: string[] = [])
src/utils/scanners/securityHeadersScanner.test.ts:250
↓ 9 callersFunctioncreateMockContext
(answers = {}, domainScanAggregate: unknown = undefined)
src/components/App.test.tsx:40
↓ 9 callersFunctionmapRisks
(answers: Record<string, string>, questions: Question[])
src/utils/recommendations.ts:18
↓ 8 callersFunctionfetchDNS
(domain: string, rrtype: string)
src/utils/domainChecks.ts:21
↓ 8 callersFunctioninterpretDnsResult
( scanner: ExecutedScannerResult, issueCount: number )
src/utils/scanners/dnsScanner.ts:99
↓ 8 callersFunctioninterpretScannerResult
(scanner: ExecutedScannerResult)
src/utils/scanners/index.ts:62
↓ 8 callersFunctioninterpretSslLabsResult
(scanner: ExecutedScannerResult)
src/utils/scanners/sslLabsScanner.ts:286
↓ 8 callersFunctionrunAllScanners
( domain: string, onProgress?: (partial: ExecutedScannerResult[]) => void )
src/utils/scanners/index.ts:101
↓ 8 callersFunctiontrackButtonClick
(buttonName: string, properties?: EventProperties)
src/utils/analytics.ts:28
↓ 8 callersFunctiontrackExport
(exportType: string, properties?: EventProperties)
src/utils/analytics.ts:69
↓ 7 callersFunctioncreateMockScanner
(data: unknown, issues: string[] = [])
src/utils/scanners/sslLabsScanner.test.ts:249
↓ 7 callersFunctioncreateMockScanner
(issueCount: number)
src/utils/scanners/dnsScanner.test.ts:245
↓ 7 callersFunctioninterpretCertificateResult
( scanner: ExecutedScannerResult, issueCount: number )
src/utils/scanners/certificateScanner.ts:181
↓ 7 callersFunctionrunScanner
(domain: string, scannerId: string)
src/utils/scanners/index.ts:162
↓ 7 callersFunctiontrackExternalLink
(url: string, linkText?: string)
src/utils/analytics.ts:38
↓ 7 callersFunctiontrackFormSubmit
(formName: string, properties?: EventProperties)
src/utils/analytics.ts:59
↓ 6 callersFunctioncreateMockScanner
(data: { certCount?: number; activeCertCount?: number; expiredCertCount?: number; expiringIn7D
src/utils/scanners/certificateScanner.test.ts:313
↓ 6 callersFunctioncreateSampleScannerAggregate
(domain: string = 'example.com')
src/test-utils/appStateHelpers.tsx:78
↓ 6 callersFunctiongetChartTheme
()
src/utils/theme.ts:29
↓ 6 callersFunctioninterpretEmailAuthResult
( scanner: ExecutedScannerResult, issueCount: number )
src/utils/scanners/emailAuthScanner.ts:157
↓ 6 callersFunctioninterpretRdapResult
( scanner: ExecutedScannerResult, issueCount: number )
src/utils/scanners/rdapScanner.ts:203
↓ 5 callersFunctionbuildChartData
(items: CategoryScore[])
src/components/CategoryRadarChart/index.tsx:17
↓ 5 callersFunctioncreateMockScanner
(data: unknown, issues: string[] = [])
src/utils/scanners/rdapScanner.test.ts:244
↓ 5 callersFunctioncreateMockScanner
(data: { hasSpf?: boolean; hasDmarc?: boolean; hasDkim?: boolean; dmarcEnforced?: boolean; }
src/utils/scanners/emailAuthScanner.test.ts:400
↓ 5 callersFunctiondeleteDkimSelectors
(domain: string)
src/utils/dkimSelectorsService.ts:83
↓ 5 callersFunctionexportToWord
(options: ExportReportOptions)
src/utils/exportReport.ts:210
↓ 5 callersFunctionextractSPF
(txtRecords: string[])
src/utils/domainChecks.ts:40
↓ 5 callersFunctionneedsMigration
(answers: Record<string, string>)
src/utils/answerMigration.ts:142
↓ 5 callersFunctionpersist
(key: string, value: any)
src/context/AppStateContext.tsx:55
↓ 5 callersFunctionsetScannerTimeout
(ms: number)
src/utils/scanners/index.ts:25
↓ 5 callersFunctionshowToast
(message: string, type: ToastType)
src/components/Import/index.tsx:23
↓ 4 callersFunctioncheckDKIM
(domain: string, customSelectors?: string[])
src/utils/domainChecks.ts:50
↓ 4 callersMethodclear
* Clear all cache and rate limits
src/utils/scannerCache.ts:96
↓ 4 callersFunctionderiveIssues
(scan: Partial<DomainScanResult>)
src/utils/domainChecks.ts:117
↓ 4 callersFunctionfetchCertificates
(domain: string)
src/utils/domainChecks.ts:107
↓ 4 callersFunctionfetchDMARC
(domain: string)
src/utils/domainChecks.ts:44
↓ 4 callersFunctionfetchTXT
(domain: string)
src/utils/domainChecks.ts:35
↓ 4 callersFunctionreadVar
(varName: string, fallback: string)
src/utils/theme.ts:22
↓ 4 callersFunctiontrackNavigation
(from: string, to: string)
src/utils/analytics.ts:49
↓ 3 callersMethodcleanup
* Clear expired cache entries
src/utils/scannerCache.ts:84
↓ 3 callersFunctiongetScoreColor
(percent: number)
src/components/Questionnaire/index.tsx:21
↓ 3 callersFunctiongetScoreColor
(percent: number)
src/components/Report/index.tsx:46
↓ 2 callersFunctionexportJSON
()
src/context/AppStateContext.tsx:182
↓ 2 callersFunctionfetchAnalysis
(fromCache: boolean = true, startNew: boolean = false)
src/utils/scanners/sslLabsScanner.ts:62
↓ 2 callersFunctiongetColorStyle
(percent: number)
src/utils/exportReport.ts:39
↓ 2 callersMethodgetStats
* Get cache statistics
src/utils/scannerCache.ts:104
↓ 2 callersFunctionhandleClose
()
src/components/ResetDialog/index.tsx:76
↓ 2 callersFunctionhandleSelect
(optionValue: string)
src/components/Dropdown/index.tsx:120
↓ 2 callersFunctionimportJSON
(json: string)
src/context/AppStateContext.tsx:190
↓ 2 callersFunctionloadStored
(key: string)
src/context/AppStateContext.tsx:45
↓ 2 callersFunctionnormalizeText
(text: string)
src/utils/answerMigration.ts:79
↓ 2 callersFunctionresetAll
()
src/context/AppStateContext.tsx:139
↓ 2 callersFunctionrunScanners
(domain: string)
src/context/AppStateContext.tsx:152
↓ 2 callersFunctionwithTimeout
(promise: Promise<T>, timeoutMs: number, scannerLabel: string)
src/utils/scanners/index.ts:31
↓ 1 callersFunctionchangeLanguage
(lng: string)
src/components/Footer/index.tsx:8
↓ 1 callersFunctioncheckDarkMode
()
src/components/CategoryRadarChart/index.tsx:50
↓ 1 callersMethoddisconnect
()
src/components/CategoryRadarChart/categoryRadarChart.test.tsx:42
↓ 1 callersFunctiongetStatusIcon
()
src/components/DomainScanner/index.tsx:112
↓ 1 callersFunctionhandleAddSelector
()
src/components/DkimSelectorsModal/index.tsx:57
↓ 1 callersFunctionhandleRemoveSelector
(selectorToRemove: string)
src/components/DkimSelectorsModal/index.tsx:75
↓ 1 callersMethodobserve
()
src/components/CategoryRadarChart/categoryRadarChart.test.tsx:40
↓ 1 callersFunctionrenderSeverityBadge
()
src/components/DomainScanner/index.tsx:126
↓ 1 callersFunctionsetAnswer
(id: string, value: string)
src/context/AppStateContext.tsx:124
↓ 1 callersFunctionuseTranslatedQuestions
(rawQuestions: RawQuestion[])
src/utils/questionTranslation.ts:9
↓ 1 callersFunctionvalidateSelector
(selector: string)
src/components/DkimSelectorsModal/index.tsx:46
FunctionApp
()
src/components/App.tsx:121
FunctionAppContent
()
src/components/App.tsx:16
FunctionAppStateProvider
({ children })
src/context/AppStateContext.tsx:63
FunctionCategoryRadarChart
({ categories })
src/components/CategoryRadarChart/index.tsx:45
FunctionConfirmDialog
({ isOpen, title, message, confirmLabel = 'Confirm', cancelLabel = 'Cancel', onConfirm, onCancel
src/components/ConfirmDialog/index.tsx:16
FunctionCustomTooltip
({ active, payload })
src/components/CategoryRadarChart/index.tsx:29
FunctionDkimSelectorsModal
({ isOpen, onClose, onSave, domain, existingSelectors = [], })
src/components/DkimSelectorsModal/index.tsx:14
FunctionDomainScanner
()
src/components/DomainScanner/index.tsx:13
FunctionDropdown
({ id, value, onChange, options, placeholder = 'Select an option...', className = '', disabled =
src/components/Dropdown/index.tsx:19
FunctionFooter
()
src/components/Footer/index.tsx:5
FunctionHome
()
src/components/Home/index.tsx:5
FunctionImport
()
src/components/Import/index.tsx:15
FunctionPageNotFound
()
src/components/NotFound/index.tsx:3
FunctionQuestionnaire
()
src/components/Questionnaire/index.tsx:8
FunctionReport
()
src/components/Report/index.tsx:12
FunctionResetDialog
({ isOpen, onCancel, onReset, onExportAndReset, hasData, })
src/components/ResetDialog/index.tsx:12
next →1–100 of 147, ranked by callers