scope:functions { target = <target>, with = <function>,}
Reference
target
The target argument specifies the function(s) to identify in the binary. It accepts a string (function name), an AddressValue (function address), or a FunctionQuery for pattern matching (note: the all field is not allowed in this context).
named can also be used as an alias for target when a string is passed
with
The with argument specifies the Lua function to execute for each matching function.
Example
scopes = scope:functions { target = "target_function", with = function(project, context) -- Function-level analysis logic goes here end,}-- Target by symbol pattern (regex)scopes = scope:functions { target = { matching = "ssh_scp_", kind = "symbol" }, with = function(project, context) -- Matches all functions with names matching the regex end,}-- Target by byte patternscopes = scope:functions { target = { matching = "415455534881EC2004000064488B04", kind = "bytes" }, with = function(project, context) -- Matches functions containing the byte sequence end,}
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"VulHunt rules","colors":{"primary":"#938aff","dark":"#3f3b6c"},"logo":{"light":"https://mintcdn.com/vulhunt-docs/4J8ydyrFXmRmhhWG/assets/logo/binarly_light.svg?fit=max\u0026auto=format\u0026n=4J8ydyrFXmRmhhWG\u0026q=85\u0026s=14847ddc32ce27865d094cef79319891","dark":"https://mintcdn.com/vulhunt-docs/4J8ydyrFXmRmhhWG/assets/logo/binarly_dark.svg?fit=max\u0026auto=format\u0026n=4J8ydyrFXmRmhhWG\u0026q=85\u0026s=3f32c947da03386eec89b02648efead5","href":"https://binarly.io"},"favicon":"https://mintcdn.com/vulhunt-docs/4J8ydyrFXmRmhhWG/assets/favicon.png?fit=max\u0026auto=format\u0026n=4J8ydyrFXmRmhhWG\u0026q=85\u0026s=74e1ee6351224027ba56a2fe5c4f04c8","appearance":{"default":"light","strict":true},"background":{"decoration":"gradient"},"navbar":{"primary":{"type":"button","label":"Support","href":"https://dashboard.mintlify.com"}},"footer":{"socials":{"youtube":"https://www.youtube.com/@binarly","x":"https://x.com/binarly_io","github":"https://github.com/binarly-io","linkedin":"https://www.linkedin.com/company/binarlyinc"}},"fonts":{"family":"Exo 2"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"vulhunt-docs","hasAudioNarration":false,"actualSubdomain":"vulhunt-docs","customDomains":["vulhunt-docs.binarly.io"],"gitSource":{"type":"github","owner":"binarly-io","repo":"binarly-vulhunt-docs","deployBranch":"platform-v2.0","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6a8d85f0f1cd0f8c1cd1a8e5","clientVersion":"0.0.4142","searchFilterCounts":[{"language":"default","tag":"VulHunt Reference","count":47},{"language":"default","tag":"User Guide","count":31},{"language":"default","tag":"Types","count":28},{"language":"default","tag":"Scopes","count":19},{"language":"default","tag":"VulHunt Rules","count":14},{"language":"default","tag":"Scopes Result","count":13},{"language":"default","tag":"VulHunt CLI","count":9},{"language":"default","tag":"Annotations","count":8},{"language":"default","tag":"Options","count":5},{"language":"default","tag":"VulHunt SDK","count":5}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[],"page":{"pagePath":"vulhunt-reference/scopes/functions-scope","slug":"/vulhunt-reference/scopes/functions-scope","pageMetadata":{"title":"Functions Scope","category":"scope","description":null,"href":"/vulhunt-reference/scopes/functions-scope"},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,em:`em`,p:`p`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`The `,_jsx(_components.em,{children:`scope:functions`}),` allows to write VulHunt rules targeting specific functions in the binary.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:`Parameter`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Description`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Type`}),_jsx(_components.th,{style:{textAlign:`center`},children:`Required`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`target`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Function(s) to identify in the binary`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[_jsx(_components.code,{children:`string`}),`, `,_jsx(_components.a,{href:`/vulhunt-reference/types/address-value`,children:_jsx(_components.code,{children:`AddressValue`})}),`, or `,_jsx(_components.a,{href:`/vulhunt-reference/types/function-query`,children:_jsx(_components.code,{children:`FunctionQuery`})})]}),_jsx(_components.td,{style:{textAlign:`center`},children:`Yes`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`with`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Lua function to execute for each matching function`}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`fun(project: ProjectHandle, context: FunctionContext)`})}),_jsx(_components.td,{style:{textAlign:`center`},children:`Yes`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`syntax`,children:`Syntax`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`lua`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`lua`,children:_jsxs(_components.code,{language:`lua`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`scope`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`functions`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` target`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` \u003ctarget>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` with`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` \u003cfunction>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`reference`,children:`Reference`}),`\n`,_jsx(Heading,{level:`4`,id:`target`,children:`target`}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.em,{children:`target`}),` argument specifies the function(s) to identify in the binary. It accepts a `,_jsx(_components.code,{children:`string`}),` (function name), an `,_jsx(_components.a,{href:`/vulhunt-reference/types/address-value`,children:_jsx(_components.code,{children:`AddressValue`})}),` (function address), or a `,_jsx(_components.a,{href:`/vulhunt-reference/types/function-query`,children:_jsx(_components.code,{children:`FunctionQuery`})}),` for pattern matching (note: the `,_jsx(_components.code,{children:`all`}),` field is not allowed in this context).`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`named`}),` can also be used as an alias for `,_jsx(_components.code,{children:`target`}),` when a `,_jsx(_components.code,{children:`string`}),` is passed`]})}),`\n`,_jsx(Heading,{level:`4`,id:`with`,children:`with`}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.em,{children:`with`}),` argument specifies the Lua function to execute for each matching function.`]}),`\n`,_jsx(Heading,{level:`4`,id:`example`,children:`Example`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`22`,language:`lua`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`lua`,children:_jsxs(_components.code,{language:`lua`,numberOfLines:`22`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`scopes`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` scope`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`functions`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` target`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"target_function\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` with`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` function`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`project`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`context`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` -- Function-level analysis logic goes here`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` end`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`-- Target by symbol pattern (regex)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`scopes`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` scope`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`functions`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` target`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`matching`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"ssh_scp_\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`kind`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"symbol\" `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` with`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` function`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`project`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`context`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` -- Matches all functions with names matching the regex`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` end`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`-- Target by byte pattern`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`scopes`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` scope`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`functions`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` target`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`matching`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"415455534881EC2004000064488B04\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`kind`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"bytes\" `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` with`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` function`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`project`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`context`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` -- Matches functions containing the byte sequence`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` end`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Functions Scope","category":"scope","description":null,"href":"/vulhunt-reference/scopes/functions-scope"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Syntax","slug":"syntax","depth":3,"children":[]},{"title":"Reference","slug":"reference","depth":3,"children":[]},{"title":"target","slug":"target","depth":4,"children":[]},{"title":"with","slug":"with","depth":4,"children":[]},{"title":"Example","slug":"example","depth":4,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"vulhunt-docs","siteName":"VulHunt rules","title":"Functions Scope - VulHunt rules","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-08-25T12:09:46.954Z","originalFileLocation":"vulhunt-reference/scopes/functions-scope.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"light\";if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"light\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"application-name\" content=\"VulHunt rules\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/vulhunt-docs/viXq-1qd9Hf6FpDW/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/vulhunt-docs/viXq-1qd9Hf6FpDW/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/vulhunt-docs/viXq-1qd9Hf6FpDW/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/vulhunt-docs/viXq-1qd9Hf6FpDW/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/vulhunt-docs/viXq-1qd9Hf6FpDW/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/vulhunt-docs/viXq-1qd9Hf6FpDW/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/vulhunt-docs/viXq-1qd9Hf6FpDW/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/vulhunt-docs/viXq-1qd9Hf6FpDW/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/vulhunt-docs/viXq-1qd9Hf6FpDW/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Functions Scope - VulHunt rules\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"VulHunt rules\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://vulhunt-docs.binarly.io/vulhunt-reference/scopes/functions-scope\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://vulhunt-docs.mintlify.site/_mintlify/api/og/v2?division=Scopes\u0026amp;title=Functions+Scope\u0026amp;theme=d3c36375f79c20189d104bb2\u0026amp;signature=2a734ad097ab877ed1ac6b76b142a4b152c0e4ccc529d3207805ebb2d93ec1d9\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Functions Scope - VulHunt rules\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://vulhunt-docs.mintlify.site/_mintlify/api/og/v2?division=Scopes\u0026amp;title=Functions+Scope\u0026amp;theme=d3c36375f79c20189d104bb2\u0026amp;signature=2a734ad097ab877ed1ac6b76b142a4b152c0e4ccc529d3207805ebb2d93ec1d9\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/vulhunt-docs/viXq-1qd9Hf6FpDW/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"VulHunt rules\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#938aff\">\u003clink data-mint-head rel=\"canonical\" href=\"https://vulhunt-docs.binarly.io/vulhunt-reference/scopes/functions-scope\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/vulhunt-reference/scopes/functions-scope.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://vulhunt-docs.binarly.io/#organization\",\"name\":\"VulHunt rules\",\"url\":\"https://vulhunt-docs.binarly.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/vulhunt-docs/4J8ydyrFXmRmhhWG/assets/logo/binarly_light.svg?fit=max\u0026auto=format\u0026n=4J8ydyrFXmRmhhWG\u0026q=85\u0026s=14847ddc32ce27865d094cef79319891\"}},{\"@type\":\"WebSite\",\"@id\":\"https://vulhunt-docs.binarly.io#website\",\"name\":\"VulHunt rules\",\"url\":\"https://vulhunt-docs.binarly.io\",\"publisher\":{\"@id\":\"https://vulhunt-docs.binarly.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://vulhunt-docs.binarly.io/vulhunt-reference/scopes/functions-scope#webpage\",\"url\":\"https://vulhunt-docs.binarly.io/vulhunt-reference/scopes/functions-scope\",\"name\":\"Functions Scope\",\"dateModified\":\"2026-08-25T12:09:46.954Z\",\"isPartOf\":{\"@id\":\"https://vulhunt-docs.binarly.io#website\"},\"breadcrumb\":{\"@id\":\"https://vulhunt-docs.binarly.io/vulhunt-reference/scopes/functions-scope#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://vulhunt-docs.binarly.io/vulhunt-reference/scopes/functions-scope#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Scopes\",\"item\":\"https://vulhunt-docs.binarly.io/vulhunt-reference/scopes/project-scope\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Functions Scope\",\"item\":\"https://vulhunt-docs.binarly.io/vulhunt-reference/scopes/functions-scope\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://vulhunt-docs.binarly.io/vulhunt-reference/scopes/functions-scope#article\",\"headline\":\"Functions Scope\",\"name\":\"Functions Scope\",\"url\":\"https://vulhunt-docs.binarly.io/vulhunt-reference/scopes/functions-scope\",\"mainEntityOfPage\":{\"@id\":\"https://vulhunt-docs.binarly.io/vulhunt-reference/scopes/functions-scope#webpage\"},\"dateModified\":\"2026-08-25T12:09:46.954Z\",\"publisher\":{\"@id\":\"https://vulhunt-docs.binarly.io/#organization\"},\"isPartOf\":{\"@id\":\"https://vulhunt-docs.binarly.io#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"VulHunt rules\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"VulHunt rules\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/vulhunt-reference/scopes/functions-scope.md","siteName":"VulHunt rules","nav":{"global":null,"tabs":[{"tab":"User Guide","pages":[{"title":"User Guide","href":"/user-guide/get-started/introduction"}]},{"tab":"VulHunt Reference","groups":[{"group":"Conventions","pages":[{"title":"Type Conventions","href":"/vulhunt-reference/type-notation"}]},{"group":"VulHunt Rules","pages":[{"title":"Rule Fields","href":"/vulhunt-reference/vulhunt-rules/rule-fields"}]},{"group":"Scopes","pages":[{"title":"Project Scope","description":null,"href":"/vulhunt-reference/scopes/project-scope"},{"title":"Functions Scope","href":"/vulhunt-reference/scopes/functions-scope"},{"title":"Calls Scope","description":null,"href":"/vulhunt-reference/scopes/calls-scope"},{"group":"Scopes Result","pages":[{"title":"Overview","href":"/vulhunt-reference/scopes/scopes-result/overview"},{"group":"Annotations","pages":[{"title":"Overview","href":"/vulhunt-reference/scopes/scopes-result/annotations/overview"},{"title":"AnnotateAssignment","href":"/vulhunt-reference/scopes/scopes-result/annotations/annotate-assignment"},{"title":"AnnotateAt","href":"/vulhunt-reference/scopes/scopes-result/annotations/annotate-at"},{"title":"AnnotateGlobal","href":"/vulhunt-reference/scopes/scopes-result/annotations/annotate-global"},{"title":"AnnotateOperand","href":"/vulhunt-reference/scopes/scopes-result/annotations/annotate-operand"},{"title":"AnnotatePrototype","href":"/vulhunt-reference/scopes/scopes-result/annotations/annotate-prototype"},{"title":"AnnotateRange","href":"/vulhunt-reference/scopes/scopes-result/annotations/annotate-range"},{"title":"AnnotateVariable","href":"/vulhunt-reference/scopes/scopes-result/annotations/annotate-variable"}]},{"title":"CVSS","href":"/vulhunt-reference/scopes/scopes-result/cvss"},{"title":"Evidence","href":"/vulhunt-reference/scopes/scopes-result/evidence"},{"title":"ProvenanceTable","href":"/vulhunt-reference/scopes/scopes-result/provenance-table"},{"title":"VariantTable","href":"/vulhunt-reference/scopes/scopes-result/variant-table"}]}]},{"group":"Types","pages":[{"title":"AddressValue","href":"/vulhunt-reference/types/address-value"},{"title":"BitVec","href":"/vulhunt-reference/types/bitvec"},{"title":"CallSiteQuery","href":"/vulhunt-reference/types/call-site-query"},{"title":"CalleeAtParam","href":"/vulhunt-reference/types/callee-at-param"},{"title":"CalleeAtTable","href":"/vulhunt-reference/types/callee-at-table"},{"title":"CalleesMatchingParam","href":"/vulhunt-reference/types/callees-matching-param"},{"title":"CalleesMatchingTable","href":"/vulhunt-reference/types/callees-matching-table"},{"title":"CallsFromQuery","href":"/vulhunt-reference/types/calls-from-query"},{"title":"CallsMatchingParam","href":"/vulhunt-reference/types/calls-matching-param"},{"title":"CallsMatchingTable","href":"/vulhunt-reference/types/calls-matching-table"},{"title":"CallsToQuery","href":"/vulhunt-reference/types/calls-to-query"},{"title":"CallSiteContext","href":"/vulhunt-reference/types/callsite-context"},{"title":"CallSiteTable","href":"/vulhunt-reference/types/callsite-table"},{"title":"DecompiledFunction","href":"/vulhunt-reference/types/decompiled-function"},{"title":"FunctionContext","href":"/vulhunt-reference/types/function-context"},{"title":"FunctionQuery","href":"/vulhunt-reference/types/function-query"},{"title":"Instruction","href":"/vulhunt-reference/types/instruction"},{"title":"IRTerm","href":"/vulhunt-reference/types/ir-term"},{"title":"IRTermClassKind","href":"/vulhunt-reference/types/ir-term-class-kind"},{"title":"IRTermKind","href":"/vulhunt-reference/types/ir-term-kind"},{"title":"IRTermSubKind","href":"/vulhunt-reference/types/ir-term-sub-kind"},{"title":"OperandInfo","href":"/vulhunt-reference/types/operand-info"},{"title":"OperandOrigin","href":"/vulhunt-reference/types/operand-origin"},{"title":"PatternMatcher","href":"/vulhunt-reference/types/pattern-matcher"},{"title":"ProjectHandle","href":"/vulhunt-reference/types/project-handle"},{"title":"RegexMatcher","href":"/vulhunt-reference/types/regex-matcher"},{"title":"SearchCodeResult","href":"/vulhunt-reference/types/search-code-result"},{"title":"SyntaxMatchResult","href":"/vulhunt-reference/types/syntax-match-result"}]},{"group":"Standard Library","pages":[{"title":"Overview","href":"/vulhunt-reference/stdlib-extensions/overview"}]}]}]},"basePath":"","title":"Functions Scope - VulHunt rules","buildId":"dpl_G2Qd45vZZ7MkBiGF9yYx8ZsbbKXX","deploymentId":"dpl_G2Qd45vZZ7MkBiGF9yYx8ZsbbKXX","dynamics":[],"chunks":[]}