<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.23.2</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>474</ContextCount>
  <ElementCount>426</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>131</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>4</UnitCount>
  <MyReports>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>100000 - Document - Cover Page</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/CoverPage</Role>
      <ShortName>Cover Page</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>100010 - Statement - Condensed Consolidated Balance Sheets (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/StatementCondensedConsolidatedBalanceSheetsUnaudited</Role>
      <ShortName>Condensed Consolidated Balance Sheets (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>100020 - Statement - Condensed Consolidated Balance Sheets (Unaudited) (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/StatementCondensedConsolidatedBalanceSheetsUnauditedParenthetical</Role>
      <ShortName>Condensed Consolidated Balance Sheets (Unaudited) (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>100030 - Statement - Condensed Consolidated Statements of Comprehensive Loss and Income (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/StatementCondensedConsolidatedStatementsOfComprehensiveLossAndIncomeUnaudited</Role>
      <ShortName>Condensed Consolidated Statements of Comprehensive Loss and Income (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>100040 - Statement - Condensed Consolidated Statements of Redeemable Convertible Preferred Stock and Stockholders' Equity (Deficit) (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/StatementCondensedConsolidatedStatementsOfRedeemableConvertiblePreferredStockAndStockholdersEquityDeficitUnaudited</Role>
      <ShortName>Condensed Consolidated Statements of Redeemable Convertible Preferred Stock and Stockholders' Equity (Deficit) (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>100050 - Statement - Condensed Consolidated Statements of Redeemable Convertible Preferred Stock and Stockholders' Deficit (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/StatementCondensedConsolidatedStatementsOfRedeemableConvertiblePreferredStockAndStockholdersDeficitUnaudited</Role>
      <ShortName>Condensed Consolidated Statements of Redeemable Convertible Preferred Stock and Stockholders' Deficit (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>100060 - Statement - Condensed Consolidated Statements of Cash Flows (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited</Role>
      <ShortName>Condensed Consolidated Statements of Cash Flows (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>100070 - Statement - Condensed Consolidated Statements of Cash Flows (Unaudited) (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/StatementCondensedConsolidatedStatementsOfCashFlowsUnauditedParenthetical</Role>
      <ShortName>Condensed Consolidated Statements of Cash Flows (Unaudited) (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>100080 - Disclosure - Organization and Description of Business</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureOrganizationAndDescriptionOfBusiness</Role>
      <ShortName>Organization and Description of Business</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>100090 - Disclosure - Summary of Significant Accounting Policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureSummaryOfSignificantAccountingPolicies1</Role>
      <ShortName>Summary of Significant Accounting Policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>100110 - Disclosure - Fair Value Measurements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureFairValueMeasurements</Role>
      <ShortName>Fair Value Measurements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>100120 - Disclosure - Acquisitions</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureAcquisitions</Role>
      <ShortName>Acquisitions</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>100130 - Disclosure - Goodwill and Intangible Assets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureGoodwillAndIntangibleAssets</Role>
      <ShortName>Goodwill and Intangible Assets</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>100140 - Disclosure - Debt</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureDebt1</Role>
      <ShortName>Debt</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>100160 - Disclosure - Warrants</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureWarrants1</Role>
      <ShortName>Warrants</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>100170 - Disclosure - Revenue from Contracts with Customers</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureRevenueFromContractsWithCustomers</Role>
      <ShortName>Revenue from Contracts with Customers</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>100190 - Disclosure - Sponsor Earnout Shares</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureSponsorEarnoutShares1</Role>
      <ShortName>Sponsor Earnout Shares</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>100200 - Disclosure - Purchase Consideration Liability</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosurePurchaseConsiderationLiability</Role>
      <ShortName>Purchase Consideration Liability</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>100210 - Disclosure - Redeemable Convertible Preferred Stock</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureRedeemableConvertiblePreferredStock</Role>
      <ShortName>Redeemable Convertible Preferred Stock</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>100220 - Disclosure - Stockholders' Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureStockholdersEquity</Role>
      <ShortName>Stockholders' Equity</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>100230 - Disclosure - Income Taxes</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureIncomeTaxes1</Role>
      <ShortName>Income Taxes</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>100260 - Disclosure - Stock-Based Compensation</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureStockbasedCompensation</Role>
      <ShortName>Stock-Based Compensation</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>100270 - Disclosure - Earnings (Loss) per Share</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureEarningsLossPerShare</Role>
      <ShortName>Earnings (Loss) per Share</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>100280 - Disclosure - Related Party Transactions</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureRelatedPartyTransactions</Role>
      <ShortName>Related Party Transactions</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>24</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>100290 - Disclosure - Commitments and Contingencies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureCommitmentsAndContingencies</Role>
      <ShortName>Commitments and Contingencies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>25</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>100300 - Disclosure - Subsequent Events</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureSubsequentEvents</Role>
      <ShortName>Subsequent Events</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>26</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>100310 - Disclosure - Summary of Significant Accounting Policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureSummaryOfSignificantAccountingPoliciesPolicies</Role>
      <ShortName>Summary of Significant Accounting Policies (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://www.zerofox.com/20230731/taxonomy/role/DisclosureSummaryOfSignificantAccountingPolicies1</ParentRole>
      <Position>27</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>100320 - Disclosure - Summary of Significant Accounting Policies (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureSummaryOfSignificantAccountingPoliciesTables</Role>
      <ShortName>Summary of Significant Accounting Policies (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.zerofox.com/20230731/taxonomy/role/DisclosureSummaryOfSignificantAccountingPolicies1</ParentRole>
      <Position>28</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>100340 - Disclosure - Fair Value Measurements (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureFairValueMeasurementsTables</Role>
      <ShortName>Fair Value Measurements (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.zerofox.com/20230731/taxonomy/role/DisclosureFairValueMeasurements</ParentRole>
      <Position>29</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>100350 - Disclosure - Acquisitions (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureAcquisitionsTables</Role>
      <ShortName>Acquisitions (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.zerofox.com/20230731/taxonomy/role/DisclosureAcquisitions</ParentRole>
      <Position>30</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>100360 - Disclosure - Goodwill and Intangible Assets (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureGoodwillAndIntangibleAssetsTables</Role>
      <ShortName>Goodwill and Intangible Assets (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.zerofox.com/20230731/taxonomy/role/DisclosureGoodwillAndIntangibleAssets</ParentRole>
      <Position>31</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>100370 - Disclosure - Debt (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureDebtTables</Role>
      <ShortName>Debt (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.zerofox.com/20230731/taxonomy/role/DisclosureDebt1</ParentRole>
      <Position>32</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>100380 - Disclosure - Warrants (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureWarrantsTables</Role>
      <ShortName>Warrants (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.zerofox.com/20230731/taxonomy/role/DisclosureWarrants1</ParentRole>
      <Position>33</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>100390 - Disclosure - Revenue from Contracts with Customers (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureRevenueFromContractsWithCustomersTables</Role>
      <ShortName>Revenue from Contracts with Customers (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.zerofox.com/20230731/taxonomy/role/DisclosureRevenueFromContractsWithCustomers</ParentRole>
      <Position>34</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>100400 - Disclosure - Sponsor Earnout Shares (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureSponsorEarnoutSharesTables</Role>
      <ShortName>Sponsor Earnout Shares (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.zerofox.com/20230731/taxonomy/role/DisclosureSponsorEarnoutShares1</ParentRole>
      <Position>35</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>100410 - Disclosure - Purchase Consideration Liability (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosurePurchaseConsiderationLiabilityTables</Role>
      <ShortName>Purchase Consideration Liability (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.zerofox.com/20230731/taxonomy/role/DisclosurePurchaseConsiderationLiability</ParentRole>
      <Position>36</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>100430 - Disclosure - Income Taxes (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureIncomeTaxesTables</Role>
      <ShortName>Income Taxes (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.zerofox.com/20230731/taxonomy/role/DisclosureIncomeTaxes1</ParentRole>
      <Position>37</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>100450 - Disclosure - Stock-Based Compensation (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureStockbasedCompensationTables</Role>
      <ShortName>Stock-Based Compensation (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.zerofox.com/20230731/taxonomy/role/DisclosureStockbasedCompensation</ParentRole>
      <Position>38</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>100460 - Disclosure - Earnings (Loss) per Share (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureEarningsLossPerShareTables</Role>
      <ShortName>Earnings (Loss) per Share (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.zerofox.com/20230731/taxonomy/role/DisclosureEarningsLossPerShare</ParentRole>
      <Position>39</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>100470 - Disclosure - Organization and Description of Business (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureOrganizationAndDescriptionOfBusinessDetails</Role>
      <ShortName>Organization and Description of Business (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.zerofox.com/20230731/taxonomy/role/DisclosureOrganizationAndDescriptionOfBusiness</ParentRole>
      <Position>40</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>100480 - Disclosure - Summary of Significant Accounting Policies, Emerging Growth Company Status (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureSummaryOfSignificantAccountingPoliciesEmergingGrowthCompanyStatusDetails</Role>
      <ShortName>Summary of Significant Accounting Policies, Emerging Growth Company Status (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>41</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>100490 - Disclosure - Summary of Significant Accounting Policies, Revenue Recognition (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureSummaryOfSignificantAccountingPoliciesRevenueRecognitionDetails2</Role>
      <ShortName>Summary of Significant Accounting Policies, Revenue Recognition (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>42</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>100500 - Disclosure - Summary of Significant Accounting Policies, Revenue Recognition (Details1)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureSummaryOfSignificantAccountingPoliciesRevenueRecognitionDetails12</Role>
      <ShortName>Summary of Significant Accounting Policies, Revenue Recognition (Details1)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>43</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>100510 - Disclosure - Summary of Significant Accounting Policies, Revenues Earned by Timing of Revenue (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureSummaryOfSignificantAccountingPoliciesRevenuesEarnedByTimingOfRevenueDetails</Role>
      <ShortName>Summary of Significant Accounting Policies, Revenues Earned by Timing of Revenue (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>44</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>100520 - Disclosure - Summary of Significant Accounting Policies, Revenues Earned by Line of Service (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureSummaryOfSignificantAccountingPoliciesRevenuesEarnedByLineOfServiceDetails</Role>
      <ShortName>Summary of Significant Accounting Policies, Revenues Earned by Line of Service (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>45</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>100530 - Disclosure - Summary of Significant Accounting Policies, Revenues Earned Based on Geographic Locations (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureSummaryOfSignificantAccountingPoliciesRevenuesEarnedBasedOnGeographicLocationsDetails</Role>
      <ShortName>Summary of Significant Accounting Policies, Revenues Earned Based on Geographic Locations (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>46</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>100540 - Disclosure - Summary of Significant Accounting Policies, Timing of Revenue Recognition (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureSummaryOfSignificantAccountingPoliciesTimingOfRevenueRecognitionDetails</Role>
      <ShortName>Summary of Significant Accounting Policies, Timing of Revenue Recognition (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>47</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>100570 - Disclosure - Summary of Significant Accounting Policies, Summary of Changes in Fair Value of Warrants (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureSummaryOfSignificantAccountingPoliciesSummaryOfChangesInFairValueOfWarrantsDetails</Role>
      <ShortName>Summary of Significant Accounting Policies, Summary of Changes in Fair Value of Warrants (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>48</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>100580 - Disclosure - Summary of Significant Accounting Policies, Fair Value of Financial Instruments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureSummaryOfSignificantAccountingPoliciesFairValueOfFinancialInstrumentsDetails</Role>
      <ShortName>Summary of Significant Accounting Policies, Fair Value of Financial Instruments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>49</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>100590 - Disclosure - Summary of Significant Accounting Policies, Summary of Changes in Fair Value of Sponsor Earnout Shares (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureSummaryOfSignificantAccountingPoliciesSummaryOfChangesInFairValueOfSponsorEarnoutSharesDetails</Role>
      <ShortName>Summary of Significant Accounting Policies, Summary of Changes in Fair Value of Sponsor Earnout Shares (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>50</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>100600 - Disclosure - Summary of Significant Accounting Policies, Summary of Changes in Fair Value of Purchase Consideration Liability (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureSummaryOfSignificantAccountingPoliciesSummaryOfChangesInFairValueOfPurchaseConsiderationLiabilityDetails</Role>
      <ShortName>Summary of Significant Accounting Policies, Summary of Changes in Fair Value of Purchase Consideration Liability (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>51</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>100610 - Disclosure - Summary of Significant Accounting Policies, Transaction Fees (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureSummaryOfSignificantAccountingPoliciesTransactionFeesDetails</Role>
      <ShortName>Summary of Significant Accounting Policies, Transaction Fees (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>52</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>100650 - Disclosure - Summary of Significant Accounting Policies, Income Taxes (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureSummaryOfSignificantAccountingPoliciesIncomeTaxesDetails</Role>
      <ShortName>Summary of Significant Accounting Policies, Income Taxes (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>53</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>100660 - Disclosure - Summary of Significant Accounting Policies, Computation of Basic Loss Per Share Attributable to Common Stockholders (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureSummaryOfSignificantAccountingPoliciesComputationOfBasicLossPerShareAttributableToCommonStockholdersDetails</Role>
      <ShortName>Summary of Significant Accounting Policies, Computation of Basic Loss Per Share Attributable to Common Stockholders (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>54</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>100670 - Disclosure - Summary of Significant Accounting Policies, Summary of Weighted Average Common Stock Outstanding Excluded From Computation of Diluted Net Loss Per Common Share (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureSummaryOfSignificantAccountingPoliciesSummaryOfWeightedAverageCommonStockOutstandingExcludedFromComputationOfDilutedNetLossPerCo</Role>
      <ShortName>Summary of Significant Accounting Policies, Summary of Weighted Average Common Stock Outstanding Excluded From Computation of Diluted Net Loss Per Common Share (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>55</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>100680 - Disclosure - Summary of Significant Accounting Policies, Schedule of Redeemable Convertible Preferred Stock (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureSummaryOfSignificantAccountingPoliciesScheduleOfRedeemableConvertiblePreferredStockDetails</Role>
      <ShortName>Summary of Significant Accounting Policies, Schedule of Redeemable Convertible Preferred Stock (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>56</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>100690 - Disclosure - Summary of Significant Accounting Policies, Schedule of Redeemable Convertible Preferred Stock (Parenthetical) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureSummaryOfSignificantAccountingPoliciesScheduleOfRedeemableConvertiblePreferredStockParentheticalDetails</Role>
      <ShortName>Summary of Significant Accounting Policies, Schedule of Redeemable Convertible Preferred Stock (Parenthetical) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>57</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>100730 - Disclosure - Summary of Significant Accounting Policies, Advertising (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureSummaryOfSignificantAccountingPoliciesAdvertisingDetails</Role>
      <ShortName>Summary of Significant Accounting Policies, Advertising (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>58</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>100740 - Disclosure - Summary of Significant Accounting Policies, Stock-Based Compensation (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureSummaryOfSignificantAccountingPoliciesStockbasedCompensationDetails</Role>
      <ShortName>Summary of Significant Accounting Policies, Stock-Based Compensation (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>59</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>100750 - Disclosure - Summary of Significant Accounting Policies, Concentrations of Credit Risk (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureSummaryOfSignificantAccountingPoliciesConcentrationsOfCreditRiskDetails</Role>
      <ShortName>Summary of Significant Accounting Policies, Concentrations of Credit Risk (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>60</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>100760 - Disclosure - Summary of Significant Accounting Policies, Concentration of Revenue and Accounts Receivable (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureSummaryOfSignificantAccountingPoliciesConcentrationOfRevenueAndAccountsReceivableDetails</Role>
      <ShortName>Summary of Significant Accounting Policies, Concentration of Revenue and Accounts Receivable (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>61</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>100790 - Disclosure - Fair Value Measurements, Summary of Assets (Liabilities) Carried at Fair Value (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfAssetsLiabilitiesCarriedAtFairValueDetails</Role>
      <ShortName>Fair Value Measurements, Summary of Assets (Liabilities) Carried at Fair Value (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>62</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>100800 - Disclosure - Fair Value Measurements (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureFairValueMeasurementsDetails</Role>
      <ShortName>Fair Value Measurements (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.zerofox.com/20230731/taxonomy/role/DisclosureFairValueMeasurementsTables</ParentRole>
      <Position>63</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>100850 - Disclosure - Acquisitions (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureAcquisitionsDetails</Role>
      <ShortName>Acquisitions (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.zerofox.com/20230731/taxonomy/role/DisclosureAcquisitionsTables</ParentRole>
      <Position>64</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>100870 - Disclosure - Acquisitions, Summary of Estimated Fair value of Purchase Consideration Paid (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureAcquisitionsSummaryOfEstimatedFairValueOfPurchaseConsiderationPaidDetails</Role>
      <ShortName>Acquisitions, Summary of Estimated Fair value of Purchase Consideration Paid (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>65</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>100880 - Disclosure - Acquisitions, Summary of Preliminary Purchase Price Allocation (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureAcquisitionsSummaryOfPreliminaryPurchasePriceAllocationDetails</Role>
      <ShortName>Acquisitions, Summary of Preliminary Purchase Price Allocation (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>66</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>100890 - Disclosure - Acquisitions, Summary of Intangible Assets Identified, Estimated Useful Lives and Methodologies Used to Determine Fair Values (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureAcquisitionsSummaryOfIntangibleAssetsIdentifiedEstimatedUsefulLivesAndMethodologiesUsedToDetermineFairValuesDetails</Role>
      <ShortName>Acquisitions, Summary of Intangible Assets Identified, Estimated Useful Lives and Methodologies Used to Determine Fair Values (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>67</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>100910 - Disclosure - Goodwill and Intangible Assets, Summary of Changes in Fair Value of Goodwill (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureGoodwillAndIntangibleAssetsSummaryOfChangesInFairValueOfGoodwillDetails</Role>
      <ShortName>Goodwill and Intangible Assets, Summary of Changes in Fair Value of Goodwill (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>68</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>100920 - Disclosure - Goodwill and Intangible Assets, Summary of Intangible Assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureGoodwillAndIntangibleAssetsSummaryOfIntangibleAssetsDetails</Role>
      <ShortName>Goodwill and Intangible Assets, Summary of Intangible Assets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>69</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>100930 - Disclosure - Goodwill and Intangible Assets, Summary of Future Amortization of Intangible Assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureGoodwillAndIntangibleAssetsSummaryOfFutureAmortizationOfIntangibleAssetsDetails</Role>
      <ShortName>Goodwill and Intangible Assets, Summary of Future Amortization of Intangible Assets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>70</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>100940 - Disclosure - Goodwill and Intangible Assets, Summary of Recognized Amortization of Intangible Assets Expense Recognized in Condensed Consolidated Statements of Comprehensive Loss (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureGoodwillAndIntangibleAssetsSummaryOfRecognizedAmortizationOfIntangibleAssetsExpenseRecognizedInCondensedConsolidatedStatementsOfCo</Role>
      <ShortName>Goodwill and Intangible Assets, Summary of Recognized Amortization of Intangible Assets Expense Recognized in Condensed Consolidated Statements of Comprehensive Loss (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>71</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R72.htm</HtmlFileName>
      <LongName>100950 - Disclosure - Debt, Summary of Debt Outstanding (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureDebtSummaryOfDebtOutstandingDetails</Role>
      <ShortName>Debt, Summary of Debt Outstanding (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>72</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R73.htm</HtmlFileName>
      <LongName>100960 - Disclosure - Debt, Summary of Debt Outstanding (Parenthetical) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureDebtSummaryOfDebtOutstandingParentheticalDetails</Role>
      <ShortName>Debt, Summary of Debt Outstanding (Parenthetical) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>73</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R74.htm</HtmlFileName>
      <LongName>100970 - Disclosure - Debt (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureDebtDetails</Role>
      <ShortName>Debt (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.zerofox.com/20230731/taxonomy/role/DisclosureDebtTables</ParentRole>
      <Position>74</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R75.htm</HtmlFileName>
      <LongName>100990 - Disclosure - Warrants (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureWarrantsDetails1</Role>
      <ShortName>Warrants (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.zerofox.com/20230731/taxonomy/role/DisclosureWarrantsTables</ParentRole>
      <Position>75</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R76.htm</HtmlFileName>
      <LongName>101000 - Disclosure - Warrants, Summary of Assumptions Used in Estimating Fair Values of Warrants (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureWarrantsSummaryOfAssumptionsUsedInEstimatingFairValuesOfWarrantsDetails</Role>
      <ShortName>Warrants, Summary of Assumptions Used in Estimating Fair Values of Warrants (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>76</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R77.htm</HtmlFileName>
      <LongName>101010 - Disclosure - Revenue from Contracts with Customers, Summary of Breach Revenue From Contract with Customers (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureRevenueFromContractsWithCustomersSummaryOfBreachRevenueFromContractWithCustomersDetails</Role>
      <ShortName>Revenue from Contracts with Customers, Summary of Breach Revenue From Contract with Customers (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>77</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R78.htm</HtmlFileName>
      <LongName>101020 - Disclosure - Revenue from Contracts with Customers (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureRevenueFromContractsWithCustomersDetails</Role>
      <ShortName>Revenue from Contracts with Customers (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.zerofox.com/20230731/taxonomy/role/DisclosureRevenueFromContractsWithCustomersTables</ParentRole>
      <Position>78</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R79.htm</HtmlFileName>
      <LongName>101030 - Disclosure - Revenue from Contracts with Customers 1 (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureRevenueFromContractsWithCustomers1Details</Role>
      <ShortName>Revenue from Contracts with Customers 1 (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.zerofox.com/20230731/taxonomy/role/DisclosureRevenueFromContractsWithCustomersTables</ParentRole>
      <Position>79</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R80.htm</HtmlFileName>
      <LongName>101040 - Disclosure - Revenue from Contracts with Customers, Summary of Total Value of Remaining Performance Obligations (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureRevenueFromContractsWithCustomersSummaryOfTotalValueOfRemainingPerformanceObligationsDetails</Role>
      <ShortName>Revenue from Contracts with Customers, Summary of Total Value of Remaining Performance Obligations (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>80</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R81.htm</HtmlFileName>
      <LongName>101070 - Disclosure - Sponsor Earnout Shares (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureSponsorEarnoutSharesDetails</Role>
      <ShortName>Sponsor Earnout Shares (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.zerofox.com/20230731/taxonomy/role/DisclosureSponsorEarnoutSharesTables</ParentRole>
      <Position>81</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R82.htm</HtmlFileName>
      <LongName>101080 - Disclosure - Sponsor Earnout Shares, Summary of Assumptions, Inputs, and Fair Value Results (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureSponsorEarnoutSharesSummaryOfAssumptionsInputsAndFairValueResultsDetails</Role>
      <ShortName>Sponsor Earnout Shares, Summary of Assumptions, Inputs, and Fair Value Results (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>82</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R83.htm</HtmlFileName>
      <LongName>101090 - Disclosure - Purchase Consideration Liability (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosurePurchaseConsiderationLiabilityDetails</Role>
      <ShortName>Purchase Consideration Liability (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.zerofox.com/20230731/taxonomy/role/DisclosurePurchaseConsiderationLiabilityTables</ParentRole>
      <Position>83</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R84.htm</HtmlFileName>
      <LongName>101100 - Disclosure - Purchase Consideration Liability, Summary of Fair Value of Purchase Consideration Liability (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosurePurchaseConsiderationLiabilitySummaryOfFairValueOfPurchaseConsiderationLiabilityDetails</Role>
      <ShortName>Purchase Consideration Liability, Summary of Fair Value of Purchase Consideration Liability (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>84</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R85.htm</HtmlFileName>
      <LongName>101110 - Disclosure - Redeemable Convertible Preferred Stock (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureRedeemableConvertiblePreferredStockDetails</Role>
      <ShortName>Redeemable Convertible Preferred Stock (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.zerofox.com/20230731/taxonomy/role/DisclosureRedeemableConvertiblePreferredStock</ParentRole>
      <Position>85</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R86.htm</HtmlFileName>
      <LongName>101120 - Disclosure - Stockholders' Equity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureStockholdersEquityDetails</Role>
      <ShortName>Stockholders' Equity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.zerofox.com/20230731/taxonomy/role/DisclosureStockholdersEquity</ParentRole>
      <Position>86</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R87.htm</HtmlFileName>
      <LongName>101130 - Disclosure - Income Taxes, Summary of Provision for Income Taxes (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureIncomeTaxesSummaryOfProvisionForIncomeTaxesDetails</Role>
      <ShortName>Income Taxes, Summary of Provision for Income Taxes (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>87</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R88.htm</HtmlFileName>
      <LongName>101140 - Disclosure - Income Taxes (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureIncomeTaxesDetails</Role>
      <ShortName>Income Taxes (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.zerofox.com/20230731/taxonomy/role/DisclosureIncomeTaxesTables</ParentRole>
      <Position>88</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R89.htm</HtmlFileName>
      <LongName>101160 - Disclosure - Retirement Plan (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureRetirementPlanDetails</Role>
      <ShortName>Retirement Plan (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>89</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R90.htm</HtmlFileName>
      <LongName>101170 - Disclosure - Stock-Based Compensation (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureStockbasedCompensationDetails</Role>
      <ShortName>Stock-Based Compensation (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.zerofox.com/20230731/taxonomy/role/DisclosureStockbasedCompensationTables</ParentRole>
      <Position>90</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R91.htm</HtmlFileName>
      <LongName>101180 - Disclosure - Stock-Based Compensation, Summary of Weighted-average Assumptions (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureStockbasedCompensationSummaryOfWeightedaverageAssumptionsDetails</Role>
      <ShortName>Stock-Based Compensation, Summary of Weighted-average Assumptions (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>91</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R92.htm</HtmlFileName>
      <LongName>101190 - Disclosure - Stock-Based Compensation, Summary of Option Activity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureStockbasedCompensationSummaryOfOptionActivityDetails</Role>
      <ShortName>Stock-Based Compensation, Summary of Option Activity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>92</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R93.htm</HtmlFileName>
      <LongName>101200 - Disclosure - Stock-Based Compensation, Summary of RSU Activity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureStockbasedCompensationSummaryOfRsuActivityDetails</Role>
      <ShortName>Stock-Based Compensation, Summary of RSU Activity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>93</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R94.htm</HtmlFileName>
      <LongName>101220 - Disclosure - Stock-Based Compensation, Summary of Stock-Based Compensation Expense (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureStockbasedCompensationSummaryOfStockbasedCompensationExpenseDetails</Role>
      <ShortName>Stock-Based Compensation, Summary of Stock-Based Compensation Expense (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>94</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R95.htm</HtmlFileName>
      <LongName>101230 - Disclosure - Earnings (Loss) per Share, Summary of Basic and Diluted Calculations (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureEarningsLossPerShareSummaryOfBasicAndDilutedCalculationsDetails</Role>
      <ShortName>Earnings (Loss) per Share, Summary of Basic and Diluted Calculations (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.zerofox.com/20230731/taxonomy/role/DisclosureEarningsLossPerShareTables</ParentRole>
      <Position>95</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R96.htm</HtmlFileName>
      <LongName>101250 - Disclosure - Related Party Transactions (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureRelatedPartyTransactionsDetails</Role>
      <ShortName>Related Party Transactions (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.zerofox.com/20230731/taxonomy/role/DisclosureRelatedPartyTransactions</ParentRole>
      <Position>96</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R97.htm</HtmlFileName>
      <LongName>101260 - Disclosure - Related Party Transactions, Baltimore Headquarters Lease (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureRelatedPartyTransactionsBaltimoreHeadquartersLeaseDetails</Role>
      <ShortName>Related Party Transactions, Baltimore Headquarters Lease (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>97</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R98.htm</HtmlFileName>
      <LongName>101270 - Disclosure - Related Party Transactions, Cyveillance Acquisition Sublease and Transition Support Agreement (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureRelatedPartyTransactionsCyveillanceAcquisitionSubleaseAndTransitionSupportAgreementDetails</Role>
      <ShortName>Related Party Transactions, Cyveillance Acquisition Sublease and Transition Support Agreement (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>98</Position>
    </Report>
    <Report instance="zfox-20230731.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R99.htm</HtmlFileName>
      <LongName>101280 - Disclosure - Commitments and Contingencies (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.zerofox.com/20230731/taxonomy/role/DisclosureCommitmentsAndContingenciesDetails</Role>
      <ShortName>Commitments and Contingencies (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.zerofox.com/20230731/taxonomy/role/DisclosureCommitmentsAndContingencies</ParentRole>
      <Position>99</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File doctype="10-Q" original="zfox-20230731.htm">zfox-20230731.htm</File>
    <File>zfox-20230731.xsd</File>
    <File>zfox-20230731_cal.xml</File>
    <File>zfox-20230731_def.xml</File>
    <File>zfox-20230731_lab.xml</File>
    <File>zfox-20230731_pre.xml</File>
    <File>zfox-ex31_1.htm</File>
    <File>zfox-ex31_2.htm</File>
    <File>zfox-ex32_1.htm</File>
    <File>zfox-ex32_2.htm</File>
  </InputFiles>
  <SupplementalFiles/>
  <BaseTaxonomies>
    <BaseTaxonomy items="1279">http://fasb.org/us-gaap/2023</BaseTaxonomy>
    <BaseTaxonomy items="33">http://xbrl.sec.gov/dei/2023</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
