Mythic supports Windows tokens in two ways: tracking which tokens are viewable and tracking which tokens are usable by the callback.
The difference here, besides how they show up in the Mythic interface, is what the agent can do with the tokens.
The idea is that you can list out all tokens on a computer, but that doesn’t mean that the agent has a handle to the token for use with tasking.
As part of the normal responses sent back from the agent, there’s an additional key you can supply, tokens that is a list of token objects that can be stored in the Mythic database.
These will be viewable from the “Search” -> “Tokens” page, but are not leveraged as part of further tasking.
token_id is simply a way for your callback to refer to the various tokens it interacts with.
You’ll use this token_id to register a token with your callback for use in subsequent tasking.
If you want to be able to leverage tokens as part of your tasking, you need to register those tokens with Mythic and the callback. This can be done as part of the normal post_response responses like everything else. The key here is to identify the right token - specifically via the unique combination of token_id and host.
{"action": "post_response", "responses": [ { "task_id": "uuid here", "output": "now tracking token 12345", "callback_tokens": [ { "action": "add", // could also be "remove" "host": "a.b.com", //optional - default to callback host if not specified "token_id": 12345, // id } ] } ]}
If the token 12345 hasn’t been reported via the tokens key then it will be created and then associated with Mythic.Once the token is created and associated with the callback, there will be a new dropdown menu next to the tasking bar at the bottom of the screen where you can select to use the default token or one of the new ones specified.
When you select a token to use in this way when issuing tasking, the create_tasking function’s task object will have a new attribute, task.token that contains a dictionary of all the token’s associated attributes.
This information can then be used to send additional data with the task down to the agent to indicate which tokens should be used for the task as part of your parameters.Additionally, when getting tasks that have tokens associated with them, the TokenId value will be passed down to the agent as an additional field:
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Mythic","colors":{"primary":"#6D70A7","light":"#50B071","dark":"#6D70A7"},"logo":{"light":"https://mintcdn.com/specterops-3/3s2YOrygh-Ut9KJD/logo/mythic.png?fit=max\u0026auto=format\u0026n=3s2YOrygh-Ut9KJD\u0026q=85\u0026s=9dc129a1531ec4f44de0b0e79ad03679","dark":"https://mintcdn.com/specterops-3/3s2YOrygh-Ut9KJD/logo/mythic.png?fit=max\u0026auto=format\u0026n=3s2YOrygh-Ut9KJD\u0026q=85\u0026s=9dc129a1531ec4f44de0b0e79ad03679","href":"https://docs.mythic-c2.net/"},"favicon":"https://mintcdn.com/specterops-3/I6wn8nE0SX0nqRFZ/favicon.png?fit=max\u0026auto=format\u0026n=I6wn8nE0SX0nqRFZ\u0026q=85\u0026s=20b11a663bf17cfc5bedb978b1f77b77","appearance":{"default":"dark"},"background":{"decoration":"windows"},"navbar":{"links":[{"href":"https://github.com/its-a-feature/Mythic","label":"Get the Code"}],"primary":{"type":"button","label":"Issues","href":"https://github.com/its-a-feature/Mythic/issues"}},"footer":{"socials":{"x":"https://twitter.com/its_a_feature_","github":"https://github.com/its-a-feature/Mythic","slack":"https://slack.specterops.io"}},"fonts":{"heading":{"family":"Nunito Sans","weight":900,"source":"https://fonts.gstatic.com/s/nunitosans/v15/pe0TMImSLYBIv1o4X1M8ce2xCx3yop4tQpF_MeTm0lfGWVpNn64CL7U8upHZIbMV51Q42ptCp7t1R-s.woff2","format":"woff2"}},"styling":{"codeblocks":"system","latex":false},"integrations":{"plausible":{"domain":"docs.mythic-c2.net"}},"thumbnails":{"appearance":"dark","background":"https://mintcdn.com/specterops-3/3s2YOrygh-Ut9KJD/logo/thumbnail.png?fit=max\u0026auto=format\u0026n=3s2YOrygh-Ut9KJD\u0026q=85\u0026s=c1d77133045e590ac2a1e944608a0a37"},"navigation":{"global":{"anchors":[{"anchor":"GitHub","icon":"github","href":"https://github.com/its-a-feature/Mythic"},{"anchor":"#mythic Community","icon":"slack","href":"https://slack.specterops.io"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"specterops-3","hasAudioNarration":false,"actualSubdomain":"specterops-3","customDomains":["docs.mythic-c2.net"],"gitSource":{"type":"github","owner":"mythicmeta","repo":"mintlify_documentation","deployBranch":"primary","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6a96ebe38cf6faeffe797f36","collectionId":"1e9319b1-0b78-415d-bb0b-3066e8fc4515","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6a96ebe38cf6faeffe797f36"},"feedback":{"thumbs":true,"issues":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"REMOVE_BRANDING":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6a96ebe38cf6faeffe797f36","clientVersion":"0.0.4044","searchFilterCounts":[{"language":"default","tag":"Development","count":153},{"language":"default","tag":"overview","count":153},{"language":"default","tag":"Documentation","count":126},{"language":"default","tag":"Overview","count":111},{"language":"default","tag":"1. Payload Type Development","count":58},{"language":"default","tag":"Operational Pieces","count":58},{"language":"default","tag":"Hooking Features","count":42},{"language":"default","tag":"2. C2 Development","count":28},{"language":"default","tag":"4. Create Tasking \u0026 Comms Format","count":22},{"language":"default","tag":"Agent Messages","count":20}]},"assistantConfig":{},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","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":"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":"llms-txt-v2","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":"byok-sep-25","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":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","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":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"version-4.0/customizing/hooking-features/tokens","slug":"/version-4.0/customizing/hooking-features/tokens","pageMetadata":{"title":"Tokens","description":"Token awareness and Token tasking","href":"/version-4.0/customizing/hooking-features/tokens"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Token awareness and Token tasking\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"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={code:`code`,p:`p`,pre:`pre`,span:`span`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Mythic supports Windows tokens in two ways: tracking which tokens are viewable and tracking which tokens are usable by the callback.\nThe difference here, besides how they show up in the Mythic interface, is what the agent can do with the tokens.\nThe idea is that you can list out all tokens on a computer, but that doesn’t mean that the agent has a handle to the token for use with tasking.`}),`\n`,_jsx(Heading,{level:`3`,id:`tokens`,children:`Tokens`}),`\n`,_jsxs(_components.p,{children:[`As part of the normal responses sent back from the agent, there’s an additional key you can supply, `,_jsx(_components.code,{children:`tokens`}),` that is a list of token objects that can be stored in the Mythic database.\nThese will be viewable from the “Search” -> “Tokens” page, but are not leveraged as part of further tasking.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`29`,language:`json`,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:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`29`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{ `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"action\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"post_response\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"responses\"`}),_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`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"task_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"uuid here\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"user_output\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"got some tokens yo\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"tokens\"`}),_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`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"token_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`18947`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// required, agent generated`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"host\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"bob.com\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// optional`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"description\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// optional`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"user\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"bob\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// optional`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"groups\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`//optional`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"thread_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`456`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// optional`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"process_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2345`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// optional`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"default_dacl\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`//optional p.TextField(null=True)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"session_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`//optional p.IntegerField(null=True)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"restricted\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`//optional = p.BooleanField(null=True)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"capabilities\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`//optional = p.TextField(null=True)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"logon_sid\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`//optional = p.TextField(null=True)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"integrity_level_sid\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`//optional = p.IntegerField(null=True)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"app_container_number\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`//optional = p.IntegerField(null=True)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"app_container_sid\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`//optional = p.TextField(null=True)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"privileges\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`//optional = p.TextField(null=True)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"handle\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`12345`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`//optional = p.IntegerField(null=True)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_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`,children:_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`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`token_id`}),` is simply a way for your callback to refer to the various tokens it interacts with.\nYou’ll use this `,_jsx(_components.code,{children:`token_id`}),` to register a token with your callback for use in subsequent tasking.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`callback-tokens`,children:`Callback Tokens`}),`\n`,_jsxs(_components.p,{children:[`If you want to be able to leverage tokens as part of your tasking, you need to register those tokens with Mythic and the callback. This can be done as part of the normal `,_jsx(_components.code,{children:`post_response`}),` responses like everything else. The key here is to identify the right token - specifically via the unique combination of token_id and host.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`16`,language:`json`,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:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`16`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"action\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"post_response\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"responses\"`}),_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`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"task_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"uuid here\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"output\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"now tracking token 12345\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"callback_tokens\"`}),_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`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"action\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"add\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// could also be \"remove\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"host\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"a.b.com\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`//optional - default to callback host if not specified`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"token_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`12345`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// id`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_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`,children:_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`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`If the token `,_jsx(_components.code,{children:`12345`}),` hasn’t been reported via the `,_jsx(_components.code,{children:`tokens`}),` key then it will be created and then associated with Mythic.`]}),`\n`,_jsxs(_components.p,{children:[`Once the token is created and associated with the callback, there will be a new dropdown menu next to the tasking bar at the bottom of the screen where you can select to use the default token or one of the new ones specified.\nWhen you select a token to use in this way when issuing tasking, the `,_jsx(_components.code,{children:`create_tasking`}),` function’s `,_jsx(_components.code,{children:`task`}),` object will have a new attribute, `,_jsx(_components.code,{children:`task.token`}),` that contains a dictionary of all the token’s associated attributes.\nThis information can then be used to send additional data with the task down to the agent to indicate which tokens should be used for the task as part of your parameters.`]}),`\n`,_jsxs(_components.p,{children:[`Additionally, when getting tasks that have tokens associated with them, the `,_jsx(_components.code,{children:`TokenId`}),` value will be passed down to the agent as an additional field:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`11`,language:`json`,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:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`11`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{ `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"action\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"get_tasking\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"tasks\"`}),_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`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"command\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"shell\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"parameters\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"whoami\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"uuid here\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"timestamp\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1234567`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"token\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`12345`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_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`,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":{"codeStyling":"system","config":{},"pageMetadata":{"title":"Tokens","description":"Token awareness and Token tasking","href":"/version-4.0/customizing/hooking-features/tokens"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Tokens","slug":"tokens","depth":3,"children":[]},{"title":"Callback Tokens","slug":"callback-tokens","depth":3,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"specterops-3","siteName":"Mythic","title":"Tokens - Mythic","navMaps":{"firstHrefInVersion":{"version 4.0":{"href":"/version-4.0/customizing/hooking-features/tokens","matchLevel":0},"version 3.3":{"href":"/customizing/hooking-features/tokens","matchLevel":1}},"firstHrefInLanguage":{}},"lastModified":"2026-08-03T05:40:25.707Z","originalFileLocation":"version-4.0/customizing/hooking-features/tokens.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;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=\"dark\"}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=\"description\" content=\"Token awareness and Token tasking\">\u003cmeta data-mint-head name=\"application-name\" content=\"Mythic\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/specterops-3/CtO7omxk-GskQdbQ/_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/specterops-3/CtO7omxk-GskQdbQ/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/specterops-3/CtO7omxk-GskQdbQ/_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/specterops-3/CtO7omxk-GskQdbQ/_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/specterops-3/CtO7omxk-GskQdbQ/_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/specterops-3/CtO7omxk-GskQdbQ/_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/specterops-3/CtO7omxk-GskQdbQ/_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/specterops-3/CtO7omxk-GskQdbQ/_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/specterops-3/CtO7omxk-GskQdbQ/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Tokens - Mythic\">\u003cmeta data-mint-head property=\"og:description\" content=\"Token awareness and Token tasking\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Mythic\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.mythic-c2.net/version-4.0/customizing/hooking-features/tokens\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://specterops-3.mintlify.app/_mintlify/api/og/v2?division=Hooking+Features\u0026amp;title=Tokens\u0026amp;description=Token+awareness+and+Token+tasking\u0026amp;theme=cfca8a284e14b6c3ed528a84\u0026amp;signature=8bea32185c050e89eb33e4b13d40b149d5b75fddcadeceb3afdc154329e953bc\">\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=\"Tokens - Mythic\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Token awareness and Token tasking\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://specterops-3.mintlify.app/_mintlify/api/og/v2?division=Hooking+Features\u0026amp;title=Tokens\u0026amp;description=Token+awareness+and+Token+tasking\u0026amp;theme=cfca8a284e14b6c3ed528a84\u0026amp;signature=8bea32185c050e89eb33e4b13d40b149d5b75fddcadeceb3afdc154329e953bc\">\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/specterops-3/CtO7omxk-GskQdbQ/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Mythic\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6D70A7\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.mythic-c2.net/version-4.0/customizing/hooking-features/tokens\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/version-4.0/customizing/hooking-features/tokens.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.mythic-c2.net/#organization\",\"name\":\"Mythic\",\"url\":\"https://docs.mythic-c2.net\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/specterops-3/3s2YOrygh-Ut9KJD/logo/mythic.png?fit=max\u0026auto=format\u0026n=3s2YOrygh-Ut9KJD\u0026q=85\u0026s=9dc129a1531ec4f44de0b0e79ad03679\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.mythic-c2.net#website\",\"name\":\"Mythic\",\"url\":\"https://docs.mythic-c2.net\",\"publisher\":{\"@id\":\"https://docs.mythic-c2.net/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.mythic-c2.net/version-4.0/customizing/hooking-features/tokens#webpage\",\"url\":\"https://docs.mythic-c2.net/version-4.0/customizing/hooking-features/tokens\",\"name\":\"Tokens\",\"description\":\"Token awareness and Token tasking\",\"dateModified\":\"2026-08-03T05:40:25.707Z\",\"isPartOf\":{\"@id\":\"https://docs.mythic-c2.net#website\"},\"breadcrumb\":{\"@id\":\"https://docs.mythic-c2.net/version-4.0/customizing/hooking-features/tokens#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.mythic-c2.net/version-4.0/customizing/hooking-features/tokens#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"overview\",\"item\":\"https://docs.mythic-c2.net/version-4.0/customizing/customizing-public-agent\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Hooking Features\",\"item\":\"https://docs.mythic-c2.net/version-4.0/customizing/hooking-features\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Tokens\",\"item\":\"https://docs.mythic-c2.net/version-4.0/customizing/hooking-features/tokens\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.mythic-c2.net/version-4.0/customizing/hooking-features/tokens#article\",\"headline\":\"Tokens\",\"name\":\"Tokens\",\"description\":\"Token awareness and Token tasking\",\"url\":\"https://docs.mythic-c2.net/version-4.0/customizing/hooking-features/tokens\",\"mainEntityOfPage\":{\"@id\":\"https://docs.mythic-c2.net/version-4.0/customizing/hooking-features/tokens#webpage\"},\"dateModified\":\"2026-08-03T05:40:25.707Z\",\"publisher\":{\"@id\":\"https://docs.mythic-c2.net/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.mythic-c2.net#website\"}}]}\u003c/script>","siteName":"Mythic","nav":{"global":{"anchors":[{"anchor":"GitHub","icon":"github","href":"https://github.com/its-a-feature/Mythic"},{"anchor":"#mythic Community","icon":"slack","href":"https://slack.specterops.io"}]},"versions":[{"version":"version 4.0","tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/version-4.0/home"}]},{"tab":"GraphQL API","pages":[{"title":"GraphQL API","href":"/version-4.0/scripting/home"}]},{"tab":"Development","groups":[{"group":"overview","pages":[{"title":"Overview","href":"/version-4.0/customizing/customizing-public-agent"},{"group":"Hooking Features","pages":[{"title":"Overview","href":"/version-4.0/customizing/hooking-features"},{"title":"Actions","href":"/version-4.0/customizing/hooking-features/actions"},{"group":"Linking Agents","pages":[{"title":"Overview","href":"/version-4.0/customizing/hooking-features/linking-agents"},{"title":"P2P Connections","href":"/version-4.0/customizing/hooking-features/linking-agents/action-p2p_info"}]},{"title":"Process Browser","href":"/version-4.0/customizing/hooking-features/process_list"},{"title":"Artifacts","href":"/version-4.0/customizing/hooking-features/artifacts"},{"title":"Credentials","href":"/version-4.0/customizing/hooking-features/credentials"},{"title":"File Downloads (Agent -> Mythic)","href":"/version-4.0/customizing/hooking-features/download"},{"title":"File Uploads (Mythic -> Agent)","href":"/version-4.0/customizing/hooking-features/action-upload"},{"title":"Screenshots","href":"/version-4.0/customizing/hooking-features/screenshots"},{"title":"Add / Remove Commands","href":"/version-4.0/customizing/hooking-features/commands"},{"title":"Keylog","href":"/version-4.0/customizing/hooking-features/keylog"},{"title":"File Browser","description":null,"href":"/version-4.0/customizing/hooking-features/file-browser"},{"title":"Tokens","href":"/version-4.0/customizing/hooking-features/tokens"},{"title":"Alerts","description":null,"href":"/version-4.0/customizing/hooking-features/alerts"},{"title":"SOCKS","href":"/version-4.0/customizing/hooking-features/socks"},{"title":"RPFWD","href":"/version-4.0/customizing/hooking-features/rpfwd"},{"title":"Interactive Tasking","href":"/version-4.0/customizing/hooking-features/interactive-tasking"},{"title":"Task status","href":"/version-4.0/customizing/hooking-features/task-status"},{"title":"OnContainerStart","href":"/version-4.0/customizing/hooking-features/oncontainerstart"},{"title":"Task Context Tracking","href":"/version-4.0/customizing/hooking-features/context-tracking"}]},{"group":"1. Payload Type Development","pages":[{"title":"1. Overview","href":"/version-4.0/customizing/payload-type-development"},{"group":"2. Payload Type Definition","pages":[{"title":"Payload Type Definition","href":"/version-4.0/customizing/payload-type-development/payload-type-info/payload-type-definition"},{"title":"Dynamic Build Parameters \u0026 C2 Variations","href":"/version-4.0/customizing/payload-type-development/payload-type-info/dynamic-build-parameters"},{"title":"JSONString Parameters","href":"/version-4.0/customizing/payload-type-development/payload-type-info/json-string-parameters"},{"title":"Wrapper Compatibility","href":"/version-4.0/customizing/payload-type-development/payload-type-info/wrapper-compatibility"},{"title":"Container Syncing","href":"/version-4.0/customizing/payload-type-development/payload-type-info/container-syncing"},{"title":"Turning a VM into a Container","href":"/version-4.0/customizing/payload-type-development/payload-type-info/turning-a-vm-into-a-container"}]},{"group":"3. Adding Commands","pages":[{"title":"Overview","href":"/version-4.0/customizing/payload-type-development/adding-commands"},{"title":"Commands","href":"/version-4.0/customizing/payload-type-development/adding-commands/commands"}]},{"group":"4. Create Tasking \u0026 Comms Format","pages":[{"title":"Overview","href":"/version-4.0/customizing/payload-type-development/create_tasking"},{"group":"Agent Messages","pages":[{"title":"Overview","href":"/version-4.0/customizing/payload-type-development/create_tasking/agent-side-coding"},{"title":"1. Agent Message Format","href":"/version-4.0/customizing/payload-type-development/create_tasking/agent-side-coding/agent-message-format"},{"title":"2. Checkin","href":"/version-4.0/customizing/payload-type-development/create_tasking/agent-side-coding/initial-checkin"},{"title":"3. Get Tasking","href":"/version-4.0/customizing/payload-type-development/create_tasking/agent-side-coding/action_get_tasking"},{"title":"4. Submitting Responses","href":"/version-4.0/customizing/payload-type-development/create_tasking/agent-side-coding/action-post_response"},{"title":"5. SOCKS","href":"/version-4.0/customizing/payload-type-development/create_tasking/agent-side-coding/socks"},{"title":"6. Reverse Port Forward","href":"/version-4.0/customizing/payload-type-development/create_tasking/agent-side-coding/rpfwd"},{"title":"7. Peer-to-peer messages","href":"/version-4.0/customizing/payload-type-development/create_tasking/agent-side-coding/delegates"},{"title":"8. Interactive Tasking","href":"/version-4.0/customizing/payload-type-development/create_tasking/agent-side-coding/8.-interactive-tasking"},{"title":"9. Agent RPC","href":"/version-4.0/customizing/payload-type-development/create_tasking/agent-side-coding/agent-rpc"},{"title":"10. File Editor Protocol","href":"/version-4.0/customizing/payload-type-development/create_tasking/agent-side-coding/file-editor-protocol"}]}]},{"title":"5. Browser Scripting","href":"/version-4.0/customizing/payload-type-development/browser-scripting"},{"title":"6. Dynamic Command Parameter Values","href":"/version-4.0/customizing/payload-type-development/dynamic-parameter-values"},{"title":"7. Sub-tasking / Task Callbacks","href":"/version-4.0/customizing/payload-type-development/sub-tasking-task-callbacks"},{"title":"8. OPSEC Checking","href":"/version-4.0/customizing/payload-type-development/opsec-checking"},{"title":"9. Translation Containers","href":"/version-4.0/customizing/payload-type-development/translation-containers"},{"title":"10. Process Response","href":"/version-4.0/customizing/payload-type-development/process-response"},{"title":"11 TypedArray Parse Function","href":"/version-4.0/customizing/payload-type-development/12-typedarray-parse-function"},{"title":"12. SOCKS","href":"/version-4.0/customizing/payload-type-development/socks"},{"title":"13. Reverse PortFwd","href":"/version-4.0/customizing/payload-type-development/reverse-portfwd"},{"title":"14. Interactive Tasking","href":"/version-4.0/customizing/payload-type-development/15.-interactive-tasking"}]},{"group":"2. C2 Development","pages":[{"group":"2.1 Getting Started","pages":[{"title":"1. Getting Started","href":"/version-4.0/customizing/c2-related-development/mythic-definition/2.1.1-c2-class-definition"},{"title":"2. Parameters","href":"/version-4.0/customizing/c2-related-development/mythic-definition/2.1.2-c2-parameters"},{"title":"3. Running","href":"/version-4.0/customizing/c2-related-development/mythic-definition/2.1.3-c2-running"},{"title":"4. Server Code","href":"/version-4.0/customizing/c2-related-development/mythic-definition/2.1.4-c2-server-code"}]},{"group":"2.2 Advanced Features","pages":[{"title":"1. Configuration Files","href":"/version-4.0/customizing/c2-related-development/server-side-coding/2.2.1-c2-configuration-files"},{"title":"2. OPSEC Checks","href":"/version-4.0/customizing/c2-related-development/server-side-coding/2.2.2-opsec-checks-for-c2-profiles"},{"title":"3. Configuration Checks","href":"/version-4.0/customizing/c2-related-development/server-side-coding/2.2.3-configuration-checks"},{"title":"4. Sample Message","href":"/version-4.0/customizing/c2-related-development/server-side-coding/2.2.4-sample-message"},{"title":"5. File Hosting","href":"/version-4.0/customizing/c2-related-development/server-side-coding/2.2.5-file-hosting"},{"title":"6. Redirect Rules","href":"/version-4.0/customizing/c2-related-development/server-side-coding/2.2.6-redirect-rules"},{"title":"7. Get IOC","href":"/version-4.0/customizing/c2-related-development/server-side-coding/2.2.7-get-ioc"},{"title":"8. Push C2","href":"/version-4.0/customizing/c2-related-development/server-side-coding/2.2.8-push-c2"},{"title":"9. Custom RPC","href":"/version-4.0/customizing/c2-related-development/server-side-coding/2.2.9-custom-rpc"}]},{"group":"2.3 Docker","pages":[{"title":"1. Docker Containers","href":"/version-4.0/customizing/c2-related-development/server-side-coding/2.3.1-c2-docker-containers"}]}]},{"group":"3. Consuming Containers","pages":[{"title":"Overview","href":"/version-4.0/customizing/3.-consuming-containers"},{"title":"Webhooks","href":"/version-4.0/customizing/3.-consuming-containers/webhooks"},{"title":"Logging","href":"/version-4.0/customizing/3.-consuming-containers/logging"},{"group":"Eventing","pages":[{"title":"Overview","href":"/version-4.0/customizing/3.-consuming-containers/eventing"},{"title":"Operator Context (run_as)","href":"/version-4.0/customizing/3.-consuming-containers/eventing/operator-context-run_as"},{"title":"Workflow Triggers","href":"/version-4.0/customizing/3.-consuming-containers/eventing/workflow-triggers"},{"title":"Steps","href":"/version-4.0/customizing/3.-consuming-containers/eventing/steps"}]},{"title":"Auth","href":"/version-4.0/customizing/3.-consuming-containers/auth"},{"title":"Chat Containers","href":"/version-4.0/customizing/3.-consuming-containers/chat"}]},{"title":"4. Extending Agent Commands","href":"/version-4.0/customizing/4.-extending-agent-commands"},{"title":"5. Custom Browsers","href":"/version-4.0/customizing/5.-custom-browsers"},{"title":"Mythic UI Development","href":"/version-4.0/customizing/mythic-ui-development"}]}]},{"tab":"MythicRPC","pages":[{"title":"MythicRPC","href":"/version-4.0/mythicrpc/mythicrpc"}]}]},{"version":"version 3.3","pages":[{"title":"version 3.3","href":"/customizing/hooking-features/tokens"}]},{"version":"version 3.0","tabs":[{"tab":"Documentation"}]},{"version":"version 2.3","tabs":[{"tab":"Documentation"}]}]},"basePath":"","title":"Tokens - Mythic","buildId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","deploymentId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","dynamics":[],"chunks":[]}