<?xml version="1.0" encoding="UTF-8"?>

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2025 Workiva-->
<!--r:f91e91eb-1216-49aa-ad87-e8c202910f6a,g:acbdad6e-f0d9-4fcd-ae1e-148ad1e2075e-->
<link:linkbase xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xbrldt="http://xbrl.org/2005/xbrldt" xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd">
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/all" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#all"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#hypercube-dimension"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-default"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-domain"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/domain-member" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#domain-member"/>
  <link:roleRef roleURI="http://www.shbi.com/role/CONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY" xlink:type="simple" xlink:href="shbi-20241231.xsd#CONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY"/>
  <link:definitionLink xlink:role="http://www.shbi.com/role/CONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_d4f6ca51-13d0-4266-a494-f8686de8831d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_83b1c8a1-a5a5-452f-b063-0b72b6bfd0db" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_d4f6ca51-13d0-4266-a494-f8686de8831d" xlink:to="loc_us-gaap_StatementTable_83b1c8a1-a5a5-452f-b063-0b72b6bfd0db" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_64152d37-a104-4df8-aae3-6adf9bbf9199" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementEquityComponentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_83b1c8a1-a5a5-452f-b063-0b72b6bfd0db" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_64152d37-a104-4df8-aae3-6adf9bbf9199" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_64152d37-a104-4df8-aae3-6adf9bbf9199_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_64152d37-a104-4df8-aae3-6adf9bbf9199" xlink:to="loc_us-gaap_EquityComponentDomain_64152d37-a104-4df8-aae3-6adf9bbf9199_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_3a5e1212-89ec-4f48-8476-d9641e03f390" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_64152d37-a104-4df8-aae3-6adf9bbf9199" xlink:to="loc_us-gaap_EquityComponentDomain_3a5e1212-89ec-4f48-8476-d9641e03f390" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockMember_6a91776b-6c99-4770-818f-88c94784558f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommonStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_3a5e1212-89ec-4f48-8476-d9641e03f390" xlink:to="loc_us-gaap_CommonStockMember_6a91776b-6c99-4770-818f-88c94784558f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapitalMember_0cf56eeb-a4d4-4903-be1e-f84a58c019ee" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AdditionalPaidInCapitalMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_3a5e1212-89ec-4f48-8476-d9641e03f390" xlink:to="loc_us-gaap_AdditionalPaidInCapitalMember_0cf56eeb-a4d4-4903-be1e-f84a58c019ee" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsMember_699298ac-83d7-4a3e-af79-29942c2130fa" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RetainedEarningsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_3a5e1212-89ec-4f48-8476-d9641e03f390" xlink:to="loc_us-gaap_RetainedEarningsMember_699298ac-83d7-4a3e-af79-29942c2130fa" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_23efa529-5a1f-48e6-a245-160265c97a67" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_3a5e1212-89ec-4f48-8476-d9641e03f390" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_23efa529-5a1f-48e6-a245-160265c97a67" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_a91a2689-299f-467b-a923-855ca2c68701" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_CumulativeEffectPeriodOfAdoptionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_83b1c8a1-a5a5-452f-b063-0b72b6bfd0db" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_a91a2689-299f-467b-a923-855ca2c68701" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_a91a2689-299f-467b-a923-855ca2c68701_default" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_CumulativeEffectPeriodOfAdoptionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_a91a2689-299f-467b-a923-855ca2c68701" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_a91a2689-299f-467b-a923-855ca2c68701_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_36d4eb67-78c3-4ad2-a4cf-64590d498ce9" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_CumulativeEffectPeriodOfAdoptionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_a91a2689-299f-467b-a923-855ca2c68701" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_36d4eb67-78c3-4ad2-a4cf-64590d498ce9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionAdjustmentMember_804a415e-52a1-40fd-bb8f-ac7c3de9fa0c" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_CumulativeEffectPeriodOfAdoptionAdjustmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_36d4eb67-78c3-4ad2-a4cf-64590d498ce9" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionAdjustmentMember_804a415e-52a1-40fd-bb8f-ac7c3de9fa0c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_6ca93551-eaf4-4f7f-ad8f-dc83e60f2b42" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInStockholdersEquityRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_d4f6ca51-13d0-4266-a494-f8686de8831d" xlink:to="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_6ca93551-eaf4-4f7f-ad8f-dc83e60f2b42" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_49111ef2-0efe-4eaa-820c-3e4c897bb190" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StockholdersEquity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_6ca93551-eaf4-4f7f-ad8f-dc83e60f2b42" xlink:to="loc_us-gaap_StockholdersEquity_49111ef2-0efe-4eaa-820c-3e4c897bb190" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_dc757af7-60df-4a78-8e25-39619109e56c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_6ca93551-eaf4-4f7f-ad8f-dc83e60f2b42" xlink:to="loc_us-gaap_NetIncomeLoss_dc757af7-60df-4a78-8e25-39619109e56c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_2e1888da-7467-48c0-928f-7afbb31fd671" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_6ca93551-eaf4-4f7f-ad8f-dc83e60f2b42" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_2e1888da-7467-48c0-928f-7afbb31fd671" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesAcquisitions_6de989fb-f250-4e91-b490-600252c29bb9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StockIssuedDuringPeriodSharesAcquisitions"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_6ca93551-eaf4-4f7f-ad8f-dc83e60f2b42" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesAcquisitions_6de989fb-f250-4e91-b490-600252c29bb9" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueAcquisitions_77b4ab37-42da-4fe8-a79f-6cf5fd94fa13" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StockIssuedDuringPeriodValueAcquisitions"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_6ca93551-eaf4-4f7f-ad8f-dc83e60f2b42" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueAcquisitions_77b4ab37-42da-4fe8-a79f-6cf5fd94fa13" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans_73b81d71-ab33-413f-8927-18b984e90c2e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_6ca93551-eaf4-4f7f-ad8f-dc83e60f2b42" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans_73b81d71-ab33-413f-8927-18b984e90c2e" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueEmployeeStockPurchasePlan_bbcff0c5-8ff5-4ba0-81d4-e83ddaa12f13" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StockIssuedDuringPeriodValueEmployeeStockPurchasePlan"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_6ca93551-eaf4-4f7f-ad8f-dc83e60f2b42" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueEmployeeStockPurchasePlan_bbcff0c5-8ff5-4ba0-81d4-e83ddaa12f13" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_0a9c76e6-54b8-4f0d-b493-fc7969f2ded8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_6ca93551-eaf4-4f7f-ad8f-dc83e60f2b42" xlink:to="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_0a9c76e6-54b8-4f0d-b493-fc7969f2ded8" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DividendsCommonStockCash_93f1ae4c-b003-4e10-8b76-078feec8bb4c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DividendsCommonStockCash"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_6ca93551-eaf4-4f7f-ad8f-dc83e60f2b42" xlink:to="loc_us-gaap_DividendsCommonStockCash_93f1ae4c-b003-4e10-8b76-078feec8bb4c" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_89503fda-a170-4e6c-9bb3-163383ae9fe1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StockholdersEquity"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.shbi.com/role/SummaryofSignificantAccountingPoliciesNarrativeDetails" xlink:type="simple" xlink:href="shbi-20241231.xsd#SummaryofSignificantAccountingPoliciesNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.shbi.com/role/SummaryofSignificantAccountingPoliciesNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_shbi_SignificantAccountingPoliciesLineItems_9be3012b-f948-48c1-b20e-17857adb5c08" xlink:href="shbi-20241231.xsd#shbi_SignificantAccountingPoliciesLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_SignificantAccountingPoliciesTable_1e2942e0-5411-4e24-a2d5-da65756ebb49" xlink:href="shbi-20241231.xsd#shbi_SignificantAccountingPoliciesTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_shbi_SignificantAccountingPoliciesLineItems_9be3012b-f948-48c1-b20e-17857adb5c08" xlink:to="loc_shbi_SignificantAccountingPoliciesTable_1e2942e0-5411-4e24-a2d5-da65756ebb49" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_1df24e1f-512a-4693-916d-75b8847abe23" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_shbi_SignificantAccountingPoliciesTable_1e2942e0-5411-4e24-a2d5-da65756ebb49" xlink:to="loc_srt_RangeAxis_1df24e1f-512a-4693-916d-75b8847abe23" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_1df24e1f-512a-4693-916d-75b8847abe23_default" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_1df24e1f-512a-4693-916d-75b8847abe23" xlink:to="loc_srt_RangeMember_1df24e1f-512a-4693-916d-75b8847abe23_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_1ca6da90-7405-4291-888d-8c3996696078" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_1df24e1f-512a-4693-916d-75b8847abe23" xlink:to="loc_srt_RangeMember_1ca6da90-7405-4291-888d-8c3996696078" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_d106659e-f944-4262-812b-378c72bc3780" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_1ca6da90-7405-4291-888d-8c3996696078" xlink:to="loc_srt_MinimumMember_d106659e-f944-4262-812b-378c72bc3780" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_0de707b7-07c3-4c2b-9dea-8649b735cfe2" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_1ca6da90-7405-4291-888d-8c3996696078" xlink:to="loc_srt_MaximumMember_0de707b7-07c3-4c2b-9dea-8649b735cfe2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_366498f0-3e78-4e92-8fd5-4e8de7f52461" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PropertyPlantAndEquipmentByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_shbi_SignificantAccountingPoliciesTable_1e2942e0-5411-4e24-a2d5-da65756ebb49" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_366498f0-3e78-4e92-8fd5-4e8de7f52461" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_366498f0-3e78-4e92-8fd5-4e8de7f52461_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_366498f0-3e78-4e92-8fd5-4e8de7f52461" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_366498f0-3e78-4e92-8fd5-4e8de7f52461_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_378ad0ea-a43a-4a24-b8f7-acb6f706733c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_366498f0-3e78-4e92-8fd5-4e8de7f52461" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_378ad0ea-a43a-4a24-b8f7-acb6f706733c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FurnitureAndFixturesMember_ea78d944-f4a1-4744-a615-09c1b00798a9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FurnitureAndFixturesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_378ad0ea-a43a-4a24-b8f7-acb6f706733c" xlink:to="loc_us-gaap_FurnitureAndFixturesMember_ea78d944-f4a1-4744-a615-09c1b00798a9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComputerEquipmentMember_1b990996-9989-46ac-a4a0-f90190234598" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ComputerEquipmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_378ad0ea-a43a-4a24-b8f7-acb6f706733c" xlink:to="loc_us-gaap_ComputerEquipmentMember_1b990996-9989-46ac-a4a0-f90190234598" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BuildingAndBuildingImprovementsMember_01963836-f534-4855-b61b-a63a85489e94" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BuildingAndBuildingImprovementsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_378ad0ea-a43a-4a24-b8f7-acb6f706733c" xlink:to="loc_us-gaap_BuildingAndBuildingImprovementsMember_01963836-f534-4855-b61b-a63a85489e94" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LandImprovementsMember_7b1c4490-e354-416d-8c3b-ea9e7842aecd" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LandImprovementsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_378ad0ea-a43a-4a24-b8f7-acb6f706733c" xlink:to="loc_us-gaap_LandImprovementsMember_7b1c4490-e354-416d-8c3b-ea9e7842aecd" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_fba4e703-5981-4875-8d6f-17c5b721b80f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_shbi_SignificantAccountingPoliciesTable_1e2942e0-5411-4e24-a2d5-da65756ebb49" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_fba4e703-5981-4875-8d6f-17c5b721b80f" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_fba4e703-5981-4875-8d6f-17c5b721b80f_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_fba4e703-5981-4875-8d6f-17c5b721b80f" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_fba4e703-5981-4875-8d6f-17c5b721b80f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_1a2ac51e-abbd-4978-a737-6daf0b38b419" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_fba4e703-5981-4875-8d6f-17c5b721b80f" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_1a2ac51e-abbd-4978-a737-6daf0b38b419" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CoreDepositsMember_3ba243c9-5e92-4050-91b7-fd6f331abd7f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CoreDepositsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_1a2ac51e-abbd-4978-a737-6daf0b38b419" xlink:to="loc_us-gaap_CoreDepositsMember_3ba243c9-5e92-4050-91b7-fd6f331abd7f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CollateralAxis_5c1d1ff6-d14a-406c-88fd-bbd6a8a42fa3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CollateralAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_shbi_SignificantAccountingPoliciesTable_1e2942e0-5411-4e24-a2d5-da65756ebb49" xlink:to="loc_us-gaap_CollateralAxis_5c1d1ff6-d14a-406c-88fd-bbd6a8a42fa3" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CollateralDomain_5c1d1ff6-d14a-406c-88fd-bbd6a8a42fa3_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CollateralDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CollateralAxis_5c1d1ff6-d14a-406c-88fd-bbd6a8a42fa3" xlink:to="loc_us-gaap_CollateralDomain_5c1d1ff6-d14a-406c-88fd-bbd6a8a42fa3_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CollateralDomain_6f74aabb-74ee-44c1-b026-e48b6154ef77" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CollateralDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CollateralAxis_5c1d1ff6-d14a-406c-88fd-bbd6a8a42fa3" xlink:to="loc_us-gaap_CollateralDomain_6f74aabb-74ee-44c1-b026-e48b6154ef77" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CollateralPledgedMember_4c093f8f-530e-41c3-b6cb-0395a43b0c4a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CollateralPledgedMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CollateralDomain_6f74aabb-74ee-44c1-b026-e48b6154ef77" xlink:to="loc_us-gaap_CollateralPledgedMember_4c093f8f-530e-41c3-b6cb-0395a43b0c4a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_DebtSecuritiesAvailableForSaleAndHeldToMaturityAccruedInterestAfterAllowanceForCreditLoss_b8f5924d-6dc4-4f4c-a456-b6d44efc1c5b" xlink:href="shbi-20241231.xsd#shbi_DebtSecuritiesAvailableForSaleAndHeldToMaturityAccruedInterestAfterAllowanceForCreditLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_shbi_SignificantAccountingPoliciesLineItems_9be3012b-f948-48c1-b20e-17857adb5c08" xlink:to="loc_shbi_DebtSecuritiesAvailableForSaleAndHeldToMaturityAccruedInterestAfterAllowanceForCreditLoss_b8f5924d-6dc4-4f4c-a456-b6d44efc1c5b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleRestricted_35f4e38b-b00f-4c95-8fa7-b5e1b2b9daca" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtSecuritiesAvailableForSaleRestricted"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_shbi_SignificantAccountingPoliciesLineItems_9be3012b-f948-48c1-b20e-17857adb5c08" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleRestricted_35f4e38b-b00f-4c95-8fa7-b5e1b2b9daca" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestBeforeAllowanceForCreditLoss_b7e87087-49d0-4e65-accf-d66b0e740422" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestBeforeAllowanceForCreditLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_shbi_SignificantAccountingPoliciesLineItems_9be3012b-f948-48c1-b20e-17857adb5c08" xlink:to="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestBeforeAllowanceForCreditLoss_b7e87087-49d0-4e65-accf-d66b0e740422" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesFairValue_e815424e-90d4-4d73-aa3e-0de660667e37" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_HeldToMaturitySecuritiesFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_shbi_SignificantAccountingPoliciesLineItems_9be3012b-f948-48c1-b20e-17857adb5c08" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesFairValue_e815424e-90d4-4d73-aa3e-0de660667e37" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableAccruedInterestAfterAllowanceForCreditLoss_5feb6522-65b0-440b-a9b6-42e0c849f649" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableAccruedInterestAfterAllowanceForCreditLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_shbi_SignificantAccountingPoliciesLineItems_9be3012b-f948-48c1-b20e-17857adb5c08" xlink:to="loc_us-gaap_FinancingReceivableAccruedInterestAfterAllowanceForCreditLoss_5feb6522-65b0-440b-a9b6-42e0c849f649" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableAccruedInterestAfterAllowanceForCreditLossStatementOfFinancialPositionExtensibleList_7d0c46f5-8d0c-4ad4-8dd1-1b456d448192" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableAccruedInterestAfterAllowanceForCreditLossStatementOfFinancialPositionExtensibleList"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAccruedInterestAfterAllowanceForCreditLoss_5feb6522-65b0-440b-a9b6-42e0c849f649" xlink:to="loc_us-gaap_FinancingReceivableAccruedInterestAfterAllowanceForCreditLossStatementOfFinancialPositionExtensibleList_7d0c46f5-8d0c-4ad4-8dd1-1b456d448192" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransferOfLoansHeldForSaleToPortfolioLoans1_ecaf015d-4eb2-42dd-a21c-87568162f868" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TransferOfLoansHeldForSaleToPortfolioLoans1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_shbi_SignificantAccountingPoliciesLineItems_9be3012b-f948-48c1-b20e-17857adb5c08" xlink:to="loc_us-gaap_TransferOfLoansHeldForSaleToPortfolioLoans1_ecaf015d-4eb2-42dd-a21c-87568162f868" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OffBalanceSheetCreditLossLiability_e236b00d-ffd2-4d40-8481-5a86e42b097d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OffBalanceSheetCreditLossLiability"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_shbi_SignificantAccountingPoliciesLineItems_9be3012b-f948-48c1-b20e-17857adb5c08" xlink:to="loc_us-gaap_OffBalanceSheetCreditLossLiability_e236b00d-ffd2-4d40-8481-5a86e42b097d" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentUsefulLife_92af29e7-90d0-4bbb-9f9f-d2f07093f939" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PropertyPlantAndEquipmentUsefulLife"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_shbi_SignificantAccountingPoliciesLineItems_9be3012b-f948-48c1-b20e-17857adb5c08" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentUsefulLife_92af29e7-90d0-4bbb-9f9f-d2f07093f939" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NumberOfOperatingSegments_0d233736-86b0-4050-b917-eb4412af01e7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NumberOfOperatingSegments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_shbi_SignificantAccountingPoliciesLineItems_9be3012b-f948-48c1-b20e-17857adb5c08" xlink:to="loc_us-gaap_NumberOfOperatingSegments_0d233736-86b0-4050-b917-eb4412af01e7" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_d6961745-ded4-4f66-83a5-a2036dad50f3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FiniteLivedIntangibleAssetUsefulLife"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_shbi_SignificantAccountingPoliciesLineItems_9be3012b-f948-48c1-b20e-17857adb5c08" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_d6961745-ded4-4f66-83a5-a2036dad50f3" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillAndIntangibleAssetImpairment_c39d72e8-7b07-4429-8956-5ed6d1592a0d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_GoodwillAndIntangibleAssetImpairment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_shbi_SignificantAccountingPoliciesLineItems_9be3012b-f948-48c1-b20e-17857adb5c08" xlink:to="loc_us-gaap_GoodwillAndIntangibleAssetImpairment_c39d72e8-7b07-4429-8956-5ed6d1592a0d" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdvertisingExpense_85ede746-e39d-4556-97c0-e84fcb3c3ba2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AdvertisingExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_shbi_SignificantAccountingPoliciesLineItems_9be3012b-f948-48c1-b20e-17857adb5c08" xlink:to="loc_us-gaap_AdvertisingExpense_85ede746-e39d-4556-97c0-e84fcb3c3ba2" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesBeforeTax_2873fec2-0b2d-47ef-a03c-ca550b06e3d7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_shbi_SignificantAccountingPoliciesLineItems_9be3012b-f948-48c1-b20e-17857adb5c08" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesBeforeTax_2873fec2-0b2d-47ef-a03c-ca550b06e3d7" xlink:type="arc" order="12"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.shbi.com/role/BusinessCombinationNarrativeDetails" xlink:type="simple" xlink:href="shbi-20241231.xsd#BusinessCombinationNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.shbi.com/role/BusinessCombinationNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationSeparatelyRecognizedTransactionsLineItems_8a14f893-aba8-45fa-a161-30be67f364e7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BusinessCombinationSeparatelyRecognizedTransactionsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationSeparatelyRecognizedTransactionsTable_200d2cbe-747f-4d4f-8aa5-c5800ff19739" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BusinessCombinationSeparatelyRecognizedTransactionsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessCombinationSeparatelyRecognizedTransactionsLineItems_8a14f893-aba8-45fa-a161-30be67f364e7" xlink:to="loc_us-gaap_BusinessCombinationSeparatelyRecognizedTransactionsTable_200d2cbe-747f-4d4f-8aa5-c5800ff19739" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_c51fb42f-d04f-4dd6-aa57-9664b740ec18" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BusinessAcquisitionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_BusinessCombinationSeparatelyRecognizedTransactionsTable_200d2cbe-747f-4d4f-8aa5-c5800ff19739" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_c51fb42f-d04f-4dd6-aa57-9664b740ec18" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_c51fb42f-d04f-4dd6-aa57-9664b740ec18_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_c51fb42f-d04f-4dd6-aa57-9664b740ec18" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_c51fb42f-d04f-4dd6-aa57-9664b740ec18_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_ab7913c8-1b0b-49bb-8846-eee1163685da" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_c51fb42f-d04f-4dd6-aa57-9664b740ec18" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_ab7913c8-1b0b-49bb-8846-eee1163685da" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_TheCommunityFinancialCorporationMember_ab5e2165-0b82-41e1-9dfb-f26764cc9d40" xlink:href="shbi-20241231.xsd#shbi_TheCommunityFinancialCorporationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_ab7913c8-1b0b-49bb-8846-eee1163685da" xlink:to="loc_shbi_TheCommunityFinancialCorporationMember_ab5e2165-0b82-41e1-9dfb-f26764cc9d40" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuableEntitySharesIssuedPerAcquireeShare_f7ae8932-21fb-4cdf-9f79-46891f404b7a" xlink:href="shbi-20241231.xsd#shbi_BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuableEntitySharesIssuedPerAcquireeShare"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationSeparatelyRecognizedTransactionsLineItems_8a14f893-aba8-45fa-a161-30be67f364e7" xlink:to="loc_shbi_BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuableEntitySharesIssuedPerAcquireeShare_f7ae8932-21fb-4cdf-9f79-46891f404b7a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationConsiderationTransferred1_7e0192d4-c59b-449a-9167-30b74ce4625a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BusinessCombinationConsiderationTransferred1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationSeparatelyRecognizedTransactionsLineItems_8a14f893-aba8-45fa-a161-30be67f364e7" xlink:to="loc_us-gaap_BusinessCombinationConsiderationTransferred1_7e0192d4-c59b-449a-9167-30b74ce4625a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionEquityInterestsIssuedOrIssuableNumberOfSharesIssued_83bd29e6-eb02-4fda-85fe-c02c0137ca47" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BusinessAcquisitionEquityInterestsIssuedOrIssuableNumberOfSharesIssued"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationSeparatelyRecognizedTransactionsLineItems_8a14f893-aba8-45fa-a161-30be67f364e7" xlink:to="loc_us-gaap_BusinessAcquisitionEquityInterestsIssuedOrIssuableNumberOfSharesIssued_83bd29e6-eb02-4fda-85fe-c02c0137ca47" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionSharePrice_c3abefe0-3342-475b-8621-53b3adbf2154" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BusinessAcquisitionSharePrice"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationSeparatelyRecognizedTransactionsLineItems_8a14f893-aba8-45fa-a161-30be67f364e7" xlink:to="loc_us-gaap_BusinessAcquisitionSharePrice_c3abefe0-3342-475b-8621-53b3adbf2154" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationBargainPurchaseGainRecognizedAmount_363dd71a-63f1-4274-bafa-69ddacc37271" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BusinessCombinationBargainPurchaseGainRecognizedAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationSeparatelyRecognizedTransactionsLineItems_8a14f893-aba8-45fa-a161-30be67f364e7" xlink:to="loc_us-gaap_BusinessCombinationBargainPurchaseGainRecognizedAmount_363dd71a-63f1-4274-bafa-69ddacc37271" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLoansGross_2b670897-ba2c-4593-a312-63e7d1030f5f" xlink:href="shbi-20241231.xsd#shbi_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLoansGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationSeparatelyRecognizedTransactionsLineItems_8a14f893-aba8-45fa-a161-30be67f364e7" xlink:to="loc_shbi_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLoansGross_2b670897-ba2c-4593-a312-63e7d1030f5f" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLoansNonPurchaseCreditDeteriorating_83c59279-0b02-47be-aedb-295d07de1754" xlink:href="shbi-20241231.xsd#shbi_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLoansNonPurchaseCreditDeteriorating"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationSeparatelyRecognizedTransactionsLineItems_8a14f893-aba8-45fa-a161-30be67f364e7" xlink:to="loc_shbi_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLoansNonPurchaseCreditDeteriorating_83c59279-0b02-47be-aedb-295d07de1754" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLoansPurchaseCreditDeteriorating_3297d64e-6fbe-4bdb-b187-66a2a7efdba9" xlink:href="shbi-20241231.xsd#shbi_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLoansPurchaseCreditDeteriorating"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationSeparatelyRecognizedTransactionsLineItems_8a14f893-aba8-45fa-a161-30be67f364e7" xlink:to="loc_shbi_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLoansPurchaseCreditDeteriorating_3297d64e-6fbe-4bdb-b187-66a2a7efdba9" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLoansEffectOfValuation_13b2f3c3-aa62-4e6a-9bbb-01f0712e8d55" xlink:href="shbi-20241231.xsd#shbi_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLoansEffectOfValuation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationSeparatelyRecognizedTransactionsLineItems_8a14f893-aba8-45fa-a161-30be67f364e7" xlink:to="loc_shbi_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLoansEffectOfValuation_13b2f3c3-aa62-4e6a-9bbb-01f0712e8d55" xlink:type="arc" order="8"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.shbi.com/role/BusinessCombinationScheduleofBusinessAcquisitionsDetails" xlink:type="simple" xlink:href="shbi-20241231.xsd#BusinessCombinationScheduleofBusinessAcquisitionsDetails"/>
  <link:definitionLink xlink:role="http://www.shbi.com/role/BusinessCombinationScheduleofBusinessAcquisitionsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationSeparatelyRecognizedTransactionsLineItems_5c4ac0e7-e5c1-4cfd-b072-3f00d11ddf57" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BusinessCombinationSeparatelyRecognizedTransactionsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationSeparatelyRecognizedTransactionsTable_889348f7-90f2-4b3b-869a-407382d14838" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BusinessCombinationSeparatelyRecognizedTransactionsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessCombinationSeparatelyRecognizedTransactionsLineItems_5c4ac0e7-e5c1-4cfd-b072-3f00d11ddf57" xlink:to="loc_us-gaap_BusinessCombinationSeparatelyRecognizedTransactionsTable_889348f7-90f2-4b3b-869a-407382d14838" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_87adc4e1-1ee5-41a6-8254-5c506db8746b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_BusinessCombinationSeparatelyRecognizedTransactionsTable_889348f7-90f2-4b3b-869a-407382d14838" xlink:to="loc_us-gaap_AwardTypeAxis_87adc4e1-1ee5-41a6-8254-5c506db8746b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_87adc4e1-1ee5-41a6-8254-5c506db8746b_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_87adc4e1-1ee5-41a6-8254-5c506db8746b" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_87adc4e1-1ee5-41a6-8254-5c506db8746b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_009b9e6a-a2f2-4b33-8c0f-c57da7c0482c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_87adc4e1-1ee5-41a6-8254-5c506db8746b" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_009b9e6a-a2f2-4b33-8c0f-c57da7c0482c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockMember_38fdaaef-05a2-4138-a57c-2ea9aaced3ce" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommonStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_009b9e6a-a2f2-4b33-8c0f-c57da7c0482c" xlink:to="loc_us-gaap_CommonStockMember_38fdaaef-05a2-4138-a57c-2ea9aaced3ce" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedStockUnitsRSUMember_a4ed3a3a-397e-4fc8-a004-c148c4ae89c5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RestrictedStockUnitsRSUMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_009b9e6a-a2f2-4b33-8c0f-c57da7c0482c" xlink:to="loc_us-gaap_RestrictedStockUnitsRSUMember_a4ed3a3a-397e-4fc8-a004-c148c4ae89c5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_17fe3a82-8baf-410d-81ee-8ce957d573f0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BusinessAcquisitionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_BusinessCombinationSeparatelyRecognizedTransactionsTable_889348f7-90f2-4b3b-869a-407382d14838" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_17fe3a82-8baf-410d-81ee-8ce957d573f0" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_17fe3a82-8baf-410d-81ee-8ce957d573f0_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_17fe3a82-8baf-410d-81ee-8ce957d573f0" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_17fe3a82-8baf-410d-81ee-8ce957d573f0_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_5750ff4f-e2cc-49e8-adfe-17397a81dbae" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_17fe3a82-8baf-410d-81ee-8ce957d573f0" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_5750ff4f-e2cc-49e8-adfe-17397a81dbae" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_TheCommunityFinancialCorporationMember_62d08a9d-191d-4336-a979-b792eac4b568" xlink:href="shbi-20241231.xsd#shbi_TheCommunityFinancialCorporationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_5750ff4f-e2cc-49e8-adfe-17397a81dbae" xlink:to="loc_shbi_TheCommunityFinancialCorporationMember_62d08a9d-191d-4336-a979-b792eac4b568" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_dbb5911e-89e8-4c4e-ad20-8ecadf445a4a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_BusinessCombinationSeparatelyRecognizedTransactionsTable_889348f7-90f2-4b3b-869a-407382d14838" xlink:to="loc_us-gaap_DebtInstrumentAxis_dbb5911e-89e8-4c4e-ad20-8ecadf445a4a" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_dbb5911e-89e8-4c4e-ad20-8ecadf445a4a_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_dbb5911e-89e8-4c4e-ad20-8ecadf445a4a" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_dbb5911e-89e8-4c4e-ad20-8ecadf445a4a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_e70c5323-7ebd-4b85-abd5-98dd0769757e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_dbb5911e-89e8-4c4e-ad20-8ecadf445a4a" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_e70c5323-7ebd-4b85-abd5-98dd0769757e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_TCFCDebtMember_5efff786-a902-4651-a5e5-542d0d9a74df" xlink:href="shbi-20241231.xsd#shbi_TCFCDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_e70c5323-7ebd-4b85-abd5-98dd0769757e" xlink:to="loc_shbi_TCFCDebtMember_5efff786-a902-4651-a5e5-542d0d9a74df" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_6da7fd02-29e0-4695-b317-f21ee0af641c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_BusinessCombinationSeparatelyRecognizedTransactionsTable_889348f7-90f2-4b3b-869a-407382d14838" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_6da7fd02-29e0-4695-b317-f21ee0af641c" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_6da7fd02-29e0-4695-b317-f21ee0af641c_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_6da7fd02-29e0-4695-b317-f21ee0af641c" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_6da7fd02-29e0-4695-b317-f21ee0af641c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_1b22dab1-eab9-43db-8895-d2d0ea8d09a9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_6da7fd02-29e0-4695-b317-f21ee0af641c" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_1b22dab1-eab9-43db-8895-d2d0ea8d09a9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubordinatedDebtMember_83da625d-0d05-43ef-be58-efba46c5fc97" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SubordinatedDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_1b22dab1-eab9-43db-8895-d2d0ea8d09a9" xlink:to="loc_us-gaap_SubordinatedDebtMember_83da625d-0d05-43ef-be58-efba46c5fc97" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationDescriptionAbstract_bccdb606-a69b-45e6-97db-23cc4f9fbea2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BusinessCombinationDescriptionAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationSeparatelyRecognizedTransactionsLineItems_5c4ac0e7-e5c1-4cfd-b072-3f00d11ddf57" xlink:to="loc_us-gaap_BusinessCombinationDescriptionAbstract_bccdb606-a69b-45e6-97db-23cc4f9fbea2" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuable_aada860e-4a56-4959-8a1c-5c0c1307dda6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationDescriptionAbstract_bccdb606-a69b-45e6-97db-23cc4f9fbea2" xlink:to="loc_us-gaap_BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuable_aada860e-4a56-4959-8a1c-5c0c1307dda6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_BusinessCombinationSettlementOfPreExistingDebt_08ef83d7-5cba-4e55-ba7c-4c89288461ca" xlink:href="shbi-20241231.xsd#shbi_BusinessCombinationSettlementOfPreExistingDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationDescriptionAbstract_bccdb606-a69b-45e6-97db-23cc4f9fbea2" xlink:to="loc_shbi_BusinessCombinationSettlementOfPreExistingDebt_08ef83d7-5cba-4e55-ba7c-4c89288461ca" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireBusinessesGross_040e4630-2954-4127-9d0d-677023eb60b3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PaymentsToAcquireBusinessesGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationDescriptionAbstract_bccdb606-a69b-45e6-97db-23cc4f9fbea2" xlink:to="loc_us-gaap_PaymentsToAcquireBusinessesGross_040e4630-2954-4127-9d0d-677023eb60b3" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationConsiderationTransferred1_1b3442d5-8caa-401e-8b19-c3cf3b50609c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BusinessCombinationConsiderationTransferred1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationDescriptionAbstract_bccdb606-a69b-45e6-97db-23cc4f9fbea2" xlink:to="loc_us-gaap_BusinessCombinationConsiderationTransferred1_1b3442d5-8caa-401e-8b19-c3cf3b50609c" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsAbstract_69325873-e3b1-4858-9c0a-21b3f4b3bf58" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationSeparatelyRecognizedTransactionsLineItems_5c4ac0e7-e5c1-4cfd-b072-3f00d11ddf57" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsAbstract_69325873-e3b1-4858-9c0a-21b3f4b3bf58" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents_366c72f4-7c1d-414a-84da-54d0aefa7dae" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsAbstract_69325873-e3b1-4858-9c0a-21b3f4b3bf58" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents_366c72f4-7c1d-414a-84da-54d0aefa7dae" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsMarketableSecurities_d8674199-3df0-4e13-9758-c24c3bf3eeeb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsMarketableSecurities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsAbstract_69325873-e3b1-4858-9c0a-21b3f4b3bf58" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsMarketableSecurities_d8674199-3df0-4e13-9758-c24c3bf3eeeb" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLoansNet_e9eea64f-891d-4287-87ae-23f56bf37262" xlink:href="shbi-20241231.xsd#shbi_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLoansNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsAbstract_69325873-e3b1-4858-9c0a-21b3f4b3bf58" xlink:to="loc_shbi_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLoansNet_e9eea64f-891d-4287-87ae-23f56bf37262" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment_ce94e4ec-7283-45a7-a111-0f0d4c7a1207" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsAbstract_69325873-e3b1-4858-9c0a-21b3f4b3bf58" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment_ce94e4ec-7283-45a7-a111-0f0d4c7a1207" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibleAssetsOtherThanGoodwill_5c0a4926-d355-48ce-a6c9-d082187f643a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibleAssetsOtherThanGoodwill"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsAbstract_69325873-e3b1-4858-9c0a-21b3f4b3bf58" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibleAssetsOtherThanGoodwill_5c0a4926-d355-48ce-a6c9-d082187f643a" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsOther_818cedc2-abe9-4889-9b3b-0d339d7d461e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsOther"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsAbstract_69325873-e3b1-4858-9c0a-21b3f4b3bf58" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsOther_818cedc2-abe9-4889-9b3b-0d339d7d461e" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets_7e4570a4-80db-4a71-9299-cbf7c36bed26" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsAbstract_69325873-e3b1-4858-9c0a-21b3f4b3bf58" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets_7e4570a4-80db-4a71-9299-cbf7c36bed26" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilitiesAbstract_49e79fd1-0204-4278-9dc4-c8ba94d6c55b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilitiesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationSeparatelyRecognizedTransactionsLineItems_5c4ac0e7-e5c1-4cfd-b072-3f00d11ddf57" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilitiesAbstract_49e79fd1-0204-4278-9dc4-c8ba94d6c55b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedDeposits_f4b16572-4456-4cb7-8658-34cbee9909bc" xlink:href="shbi-20241231.xsd#shbi_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedDeposits"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilitiesAbstract_49e79fd1-0204-4278-9dc4-c8ba94d6c55b" xlink:to="loc_shbi_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedDeposits_f4b16572-4456-4cb7-8658-34cbee9909bc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesLongTermDebt_df1b210b-e22e-44dd-b87f-6b949a9e987d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesLongTermDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilitiesAbstract_49e79fd1-0204-4278-9dc4-c8ba94d6c55b" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesLongTermDebt_df1b210b-e22e-44dd-b87f-6b949a9e987d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesOther_35c180f2-c644-4af2-a2a7-fb8619bf5643" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesOther"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilitiesAbstract_49e79fd1-0204-4278-9dc4-c8ba94d6c55b" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesOther_35c180f2-c644-4af2-a2a7-fb8619bf5643" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilities_e9e25217-ee92-4a1d-8df8-f8489b108dab" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilitiesAbstract_49e79fd1-0204-4278-9dc4-c8ba94d6c55b" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilities_e9e25217-ee92-4a1d-8df8-f8489b108dab" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet_6e8bdd05-0996-42f4-adda-ad66d5cda168" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationSeparatelyRecognizedTransactionsLineItems_5c4ac0e7-e5c1-4cfd-b072-3f00d11ddf57" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet_6e8bdd05-0996-42f4-adda-ad66d5cda168" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationBargainPurchaseGainRecognizedAmount_7cee462a-2144-486b-bb6f-384a8912debe" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BusinessCombinationBargainPurchaseGainRecognizedAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationSeparatelyRecognizedTransactionsLineItems_5c4ac0e7-e5c1-4cfd-b072-3f00d11ddf57" xlink:to="loc_us-gaap_BusinessCombinationBargainPurchaseGainRecognizedAmount_7cee462a-2144-486b-bb6f-384a8912debe" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentCarryingAmount_6a2cee69-3448-4ac4-8bda-f4bb8bd301a2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentCarryingAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationSeparatelyRecognizedTransactionsLineItems_5c4ac0e7-e5c1-4cfd-b072-3f00d11ddf57" xlink:to="loc_us-gaap_DebtInstrumentCarryingAmount_6a2cee69-3448-4ac4-8bda-f4bb8bd301a2" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionSharePrice_22b090f8-7384-4f81-9dc7-63f161280ae5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BusinessAcquisitionSharePrice"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationSeparatelyRecognizedTransactionsLineItems_5c4ac0e7-e5c1-4cfd-b072-3f00d11ddf57" xlink:to="loc_us-gaap_BusinessAcquisitionSharePrice_22b090f8-7384-4f81-9dc7-63f161280ae5" xlink:type="arc" order="6"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.shbi.com/role/InvestmentSecuritiesAmortizedCostandEstimatedFairValuesofInvestmentSecuritiesDetails" xlink:type="simple" xlink:href="shbi-20241231.xsd#InvestmentSecuritiesAmortizedCostandEstimatedFairValuesofInvestmentSecuritiesDetails"/>
  <link:definitionLink xlink:role="http://www.shbi.com/role/InvestmentSecuritiesAmortizedCostandEstimatedFairValuesofInvestmentSecuritiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_23324d17-b6eb-4dee-8cb9-9d0b1e1a2fab" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfInvestmentsTable_a929ea67-fbe6-47fb-ad79-5211fb662f90" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfInvestmentsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_23324d17-b6eb-4dee-8cb9-9d0b1e1a2fab" xlink:to="loc_us-gaap_ScheduleOfInvestmentsTable_a929ea67-fbe6-47fb-ad79-5211fb662f90" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentAxis_c4a93fe3-03e0-49c5-85fc-c0273cb9865a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancialInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfInvestmentsTable_a929ea67-fbe6-47fb-ad79-5211fb662f90" xlink:to="loc_us-gaap_FinancialInstrumentAxis_c4a93fe3-03e0-49c5-85fc-c0273cb9865a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_c4a93fe3-03e0-49c5-85fc-c0273cb9865a_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_c4a93fe3-03e0-49c5-85fc-c0273cb9865a" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_c4a93fe3-03e0-49c5-85fc-c0273cb9865a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_e0f6acab-7715-463e-8518-d29fc5ded689" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_c4a93fe3-03e0-49c5-85fc-c0273cb9865a" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_e0f6acab-7715-463e-8518-d29fc5ded689" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_USTreasuryAndGovernmentMember_55676f47-8adc-497f-9453-6706ec13c2ba" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_USTreasuryAndGovernmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_e0f6acab-7715-463e-8518-d29fc5ded689" xlink:to="loc_us-gaap_USTreasuryAndGovernmentMember_55676f47-8adc-497f-9453-6706ec13c2ba" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MortgageBackedSecuritiesIssuedByUSGovernmentSponsoredEnterprisesMember_2342c40d-972c-4a9e-8b00-a57e7330dc0c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_MortgageBackedSecuritiesIssuedByUSGovernmentSponsoredEnterprisesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_e0f6acab-7715-463e-8518-d29fc5ded689" xlink:to="loc_us-gaap_MortgageBackedSecuritiesIssuedByUSGovernmentSponsoredEnterprisesMember_2342c40d-972c-4a9e-8b00-a57e7330dc0c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_USStatesAndPoliticalSubdivisionsMember_e945e7a2-b412-445a-87d5-e8b6cc93835b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_USStatesAndPoliticalSubdivisionsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_e0f6acab-7715-463e-8518-d29fc5ded689" xlink:to="loc_us-gaap_USStatesAndPoliticalSubdivisionsMember_e945e7a2-b412-445a-87d5-e8b6cc93835b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherDebtSecuritiesMember_70027762-4c89-4657-a317-c235d331b8aa" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_e0f6acab-7715-463e-8518-d29fc5ded689" xlink:to="loc_us-gaap_OtherDebtSecuritiesMember_70027762-4c89-4657-a317-c235d331b8aa" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossAbstract_aa481b7c-7b48-4cfb-a469-0947954ceeaf" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_23324d17-b6eb-4dee-8cb9-9d0b1e1a2fab" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossAbstract_aa481b7c-7b48-4cfb-a469-0947954ceeaf" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss_53727c18-4cba-4ccf-a4d5-e117c6bb0988" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossAbstract_aa481b7c-7b48-4cfb-a469-0947954ceeaf" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss_53727c18-4cba-4ccf-a4d5-e117c6bb0988" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_e0cd4fbb-fb17-49b4-a792-ef3e08ec3fc5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossAbstract_aa481b7c-7b48-4cfb-a469-0947954ceeaf" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_e0cd4fbb-fb17-49b4-a792-ef3e08ec3fc5" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_bbdbaef3-ff4b-4124-9f8b-4f9e9a43346f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossAbstract_aa481b7c-7b48-4cfb-a469-0947954ceeaf" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_bbdbaef3-ff4b-4124-9f8b-4f9e9a43346f" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_186f5154-15d6-4265-a073-bdfba38cbb29" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossAbstract_aa481b7c-7b48-4cfb-a469-0947954ceeaf" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_186f5154-15d6-4265-a073-bdfba38cbb29" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestAfterAllowanceForCreditLossAbstract_48a1f19e-46ac-4211-b3d2-728d44551378" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestAfterAllowanceForCreditLossAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_23324d17-b6eb-4dee-8cb9-9d0b1e1a2fab" xlink:to="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestAfterAllowanceForCreditLossAbstract_48a1f19e-46ac-4211-b3d2-728d44551378" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestBeforeAllowanceForCreditLoss_46908ce1-ca17-4fa6-9dca-3bcc21611247" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestBeforeAllowanceForCreditLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestAfterAllowanceForCreditLossAbstract_48a1f19e-46ac-4211-b3d2-728d44551378" xlink:to="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestBeforeAllowanceForCreditLoss_46908ce1-ca17-4fa6-9dca-3bcc21611247" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingGain_72b0ef5c-91d1-4606-9378-6c22d9cc4aad" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingGain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestAfterAllowanceForCreditLossAbstract_48a1f19e-46ac-4211-b3d2-728d44551378" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingGain_72b0ef5c-91d1-4606-9378-6c22d9cc4aad" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingLoss_0049f536-4368-40e5-99c7-35771484a052" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestAfterAllowanceForCreditLossAbstract_48a1f19e-46ac-4211-b3d2-728d44551378" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingLoss_0049f536-4368-40e5-99c7-35771484a052" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesFairValue_bc8a5314-7fc7-4776-a2da-5b7426f2d1bf" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_HeldToMaturitySecuritiesFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestAfterAllowanceForCreditLossAbstract_48a1f19e-46ac-4211-b3d2-728d44551378" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesFairValue_bc8a5314-7fc7-4776-a2da-5b7426f2d1bf" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesHeldToMaturityAllowanceForCreditLossExcludingAccruedInterest_13cf4cbc-f7ec-4d9d-b60d-35ee2984bad3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtSecuritiesHeldToMaturityAllowanceForCreditLossExcludingAccruedInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestAfterAllowanceForCreditLossAbstract_48a1f19e-46ac-4211-b3d2-728d44551378" xlink:to="loc_us-gaap_DebtSecuritiesHeldToMaturityAllowanceForCreditLossExcludingAccruedInterest_13cf4cbc-f7ec-4d9d-b60d-35ee2984bad3" xlink:type="arc" order="5"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.shbi.com/role/InvestmentSecuritiesNarrativeDetails" xlink:type="simple" xlink:href="shbi-20241231.xsd#InvestmentSecuritiesNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.shbi.com/role/InvestmentSecuritiesNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_4ba23db9-0850-493c-a1a6-e1a70063f772" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfInvestmentsTable_9ccb2677-1ef8-4ea3-b044-bcb23f663e46" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfInvestmentsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_4ba23db9-0850-493c-a1a6-e1a70063f772" xlink:to="loc_us-gaap_ScheduleOfInvestmentsTable_9ccb2677-1ef8-4ea3-b044-bcb23f663e46" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RestatementAxis_626d8ad3-c72e-4cbb-ad64-ad05f14e5e52" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RestatementAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfInvestmentsTable_9ccb2677-1ef8-4ea3-b044-bcb23f663e46" xlink:to="loc_srt_RestatementAxis_626d8ad3-c72e-4cbb-ad64-ad05f14e5e52" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RestatementDomain_626d8ad3-c72e-4cbb-ad64-ad05f14e5e52_default" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RestatementDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RestatementAxis_626d8ad3-c72e-4cbb-ad64-ad05f14e5e52" xlink:to="loc_srt_RestatementDomain_626d8ad3-c72e-4cbb-ad64-ad05f14e5e52_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RestatementDomain_ba6b6d5d-2f56-4110-9358-6d9ee5e6b335" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RestatementDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RestatementAxis_626d8ad3-c72e-4cbb-ad64-ad05f14e5e52" xlink:to="loc_srt_RestatementDomain_ba6b6d5d-2f56-4110-9358-6d9ee5e6b335" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RevisionOfPriorPeriodChangeInAccountingPrincipleAdjustmentMember_34892a45-a603-4452-8753-7dd789a66d23" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RevisionOfPriorPeriodChangeInAccountingPrincipleAdjustmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RestatementDomain_ba6b6d5d-2f56-4110-9358-6d9ee5e6b335" xlink:to="loc_srt_RevisionOfPriorPeriodChangeInAccountingPrincipleAdjustmentMember_34892a45-a603-4452-8753-7dd789a66d23" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CollateralAxis_a9bd0553-0c68-4b29-b067-02252c8842de" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CollateralAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfInvestmentsTable_9ccb2677-1ef8-4ea3-b044-bcb23f663e46" xlink:to="loc_us-gaap_CollateralAxis_a9bd0553-0c68-4b29-b067-02252c8842de" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CollateralDomain_a9bd0553-0c68-4b29-b067-02252c8842de_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CollateralDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CollateralAxis_a9bd0553-0c68-4b29-b067-02252c8842de" xlink:to="loc_us-gaap_CollateralDomain_a9bd0553-0c68-4b29-b067-02252c8842de_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CollateralDomain_2a625cbb-afee-40d2-915e-d8cde50eb73f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CollateralDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CollateralAxis_a9bd0553-0c68-4b29-b067-02252c8842de" xlink:to="loc_us-gaap_CollateralDomain_2a625cbb-afee-40d2-915e-d8cde50eb73f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CollateralPledgedMember_91cdcccf-ac2e-4024-9f38-cd30c98140bf" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CollateralPledgedMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CollateralDomain_2a625cbb-afee-40d2-915e-d8cde50eb73f" xlink:to="loc_us-gaap_CollateralPledgedMember_91cdcccf-ac2e-4024-9f38-cd30c98140bf" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentAxis_e38f9f71-540b-433e-bd50-71ace65c8e2e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancialInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfInvestmentsTable_9ccb2677-1ef8-4ea3-b044-bcb23f663e46" xlink:to="loc_us-gaap_FinancialInstrumentAxis_e38f9f71-540b-433e-bd50-71ace65c8e2e" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_e38f9f71-540b-433e-bd50-71ace65c8e2e_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_e38f9f71-540b-433e-bd50-71ace65c8e2e" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_e38f9f71-540b-433e-bd50-71ace65c8e2e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_b4f72091-eb62-4973-ad07-998bc9ed2c66" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_e38f9f71-540b-433e-bd50-71ace65c8e2e" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_b4f72091-eb62-4973-ad07-998bc9ed2c66" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_CorporateAndMunicipalBondsMember_3f345b35-9d3a-4d16-850f-841d90b9915d" xlink:href="shbi-20241231.xsd#shbi_CorporateAndMunicipalBondsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_b4f72091-eb62-4973-ad07-998bc9ed2c66" xlink:to="loc_shbi_CorporateAndMunicipalBondsMember_3f345b35-9d3a-4d16-850f-841d90b9915d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleAndMaturityOfMarketableSecurities_7258f071-f90f-45f9-86f8-ed7be2048f5b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProceedsFromSaleAndMaturityOfMarketableSecurities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_4ba23db9-0850-493c-a1a6-e1a70063f772" xlink:to="loc_us-gaap_ProceedsFromSaleAndMaturityOfMarketableSecurities_7258f071-f90f-45f9-86f8-ed7be2048f5b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt_177c24c5-5839-4a46-81b0-d899c93e5e1d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_4ba23db9-0850-493c-a1a6-e1a70063f772" xlink:to="loc_us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt_177c24c5-5839-4a46-81b0-d899c93e5e1d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleRealizedLoss_f823b608-ac77-4017-ad91-124c6b786395" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtSecuritiesAvailableForSaleRealizedLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_4ba23db9-0850-493c-a1a6-e1a70063f772" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleRealizedLoss_f823b608-ac77-4017-ad91-124c6b786395" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesFvNi_a7016605-3ae1-4f91-81a9-2d99ad90e48c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquitySecuritiesFvNi"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_4ba23db9-0850-493c-a1a6-e1a70063f772" xlink:to="loc_us-gaap_EquitySecuritiesFvNi_a7016605-3ae1-4f91-81a9-2d99ad90e48c" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_7bdd26c9-b7be-4c65-8c7f-26a983d7ac08" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProfitLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_4ba23db9-0850-493c-a1a6-e1a70063f772" xlink:to="loc_us-gaap_ProfitLoss_7bdd26c9-b7be-4c65-8c7f-26a983d7ac08" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestCreditLossExpenseReversal_2824cdd9-df89-4db3-9afe-7e43bb0edb90" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestCreditLossExpenseReversal"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_4ba23db9-0850-493c-a1a6-e1a70063f772" xlink:to="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestCreditLossExpenseReversal_2824cdd9-df89-4db3-9afe-7e43bb0edb90" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_DebtSecuritiesAvailableForSaleAndHeldToMaturityExcludingAccruedInterestPastDueOrNonaccrual_816552ed-40f5-4eb2-be1b-dab5817b62af" xlink:href="shbi-20241231.xsd#shbi_DebtSecuritiesAvailableForSaleAndHeldToMaturityExcludingAccruedInterestPastDueOrNonaccrual"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_4ba23db9-0850-493c-a1a6-e1a70063f772" xlink:to="loc_shbi_DebtSecuritiesAvailableForSaleAndHeldToMaturityExcludingAccruedInterestPastDueOrNonaccrual_816552ed-40f5-4eb2-be1b-dab5817b62af" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositions_92cce559-89c1-4220-a936-d51f01df28dd" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_HeldToMaturitySecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositions"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_4ba23db9-0850-493c-a1a6-e1a70063f772" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositions_92cce559-89c1-4220-a936-d51f01df28dd" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_90f64c80-c799-4ef6-a531-e89976bdc208" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_4ba23db9-0850-493c-a1a6-e1a70063f772" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_90f64c80-c799-4ef6-a531-e89976bdc208" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionNumberOfPositions_2b2e82fc-5c54-467c-8aab-8787d9dfe533" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionNumberOfPositions"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_4ba23db9-0850-493c-a1a6-e1a70063f772" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionNumberOfPositions_2b2e82fc-5c54-467c-8aab-8787d9dfe533" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleRestricted_fa0c4521-6328-410b-8936-3484c0f2a44c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtSecuritiesAvailableForSaleRestricted"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_4ba23db9-0850-493c-a1a6-e1a70063f772" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleRestricted_fa0c4521-6328-410b-8936-3484c0f2a44c" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestBeforeAllowanceForCreditLoss_c3c7f925-1dc3-45c5-9514-b9a4c065e289" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestBeforeAllowanceForCreditLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_4ba23db9-0850-493c-a1a6-e1a70063f772" xlink:to="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestBeforeAllowanceForCreditLoss_c3c7f925-1dc3-45c5-9514-b9a4c065e289" xlink:type="arc" order="11"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.shbi.com/role/InvestmentSecuritiesGrossUnrealizedLossesandFairValuebyLengthofContinuousUnrealizedLossPositionDetails" xlink:type="simple" xlink:href="shbi-20241231.xsd#InvestmentSecuritiesGrossUnrealizedLossesandFairValuebyLengthofContinuousUnrealizedLossPositionDetails"/>
  <link:definitionLink xlink:role="http://www.shbi.com/role/InvestmentSecuritiesGrossUnrealizedLossesandFairValuebyLengthofContinuousUnrealizedLossPositionDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_c7227bbb-7d09-4d12-840a-7387a258b262" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfTradingSecuritiesAndOtherTradingAssetsTable_ace5cf70-bc8b-4dee-b337-8d2720c95e91" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfTradingSecuritiesAndOtherTradingAssetsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_c7227bbb-7d09-4d12-840a-7387a258b262" xlink:to="loc_us-gaap_ScheduleOfTradingSecuritiesAndOtherTradingAssetsTable_ace5cf70-bc8b-4dee-b337-8d2720c95e91" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentAxis_4117571a-233d-4047-bbde-e546cc470f12" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancialInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfTradingSecuritiesAndOtherTradingAssetsTable_ace5cf70-bc8b-4dee-b337-8d2720c95e91" xlink:to="loc_us-gaap_FinancialInstrumentAxis_4117571a-233d-4047-bbde-e546cc470f12" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_4117571a-233d-4047-bbde-e546cc470f12_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_4117571a-233d-4047-bbde-e546cc470f12" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_4117571a-233d-4047-bbde-e546cc470f12_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_5d37c9d0-edcd-4658-b445-e545154b3b93" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_4117571a-233d-4047-bbde-e546cc470f12" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_5d37c9d0-edcd-4658-b445-e545154b3b93" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_USTreasuryAndGovernmentMember_afc6f275-baee-4fe6-8107-1f0ced5cde21" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_USTreasuryAndGovernmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_5d37c9d0-edcd-4658-b445-e545154b3b93" xlink:to="loc_us-gaap_USTreasuryAndGovernmentMember_afc6f275-baee-4fe6-8107-1f0ced5cde21" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MortgageBackedSecuritiesIssuedByUSGovernmentSponsoredEnterprisesMember_fec59314-48ff-4de4-a3ae-ed342d9c49f5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_MortgageBackedSecuritiesIssuedByUSGovernmentSponsoredEnterprisesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_5d37c9d0-edcd-4658-b445-e545154b3b93" xlink:to="loc_us-gaap_MortgageBackedSecuritiesIssuedByUSGovernmentSponsoredEnterprisesMember_fec59314-48ff-4de4-a3ae-ed342d9c49f5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_USStatesAndPoliticalSubdivisionsMember_0d37aca5-604e-444b-bccd-dbf4c201a963" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_USStatesAndPoliticalSubdivisionsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_5d37c9d0-edcd-4658-b445-e545154b3b93" xlink:to="loc_us-gaap_USStatesAndPoliticalSubdivisionsMember_0d37aca5-604e-444b-bccd-dbf4c201a963" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherDebtSecuritiesMember_5414018d-fd77-480c-a5b2-6639a0f00b3e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_5d37c9d0-edcd-4658-b445-e545154b3b93" xlink:to="loc_us-gaap_OtherDebtSecuritiesMember_5414018d-fd77-480c-a5b2-6639a0f00b3e" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLossAbstract_611013eb-381f-4a32-bec3-f64787f3531a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLossAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_c7227bbb-7d09-4d12-840a-7387a258b262" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLossAbstract_611013eb-381f-4a32-bec3-f64787f3531a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months_f091d383-66db-4f97-94c7-c3337811ba88" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLossAbstract_611013eb-381f-4a32-bec3-f64787f3531a" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months_f091d383-66db-4f97-94c7-c3337811ba88" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_cb45eeb6-2c44-4a8b-9ff9-fe3313c11ae3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLossAbstract_611013eb-381f-4a32-bec3-f64787f3531a" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_cb45eeb6-2c44-4a8b-9ff9-fe3313c11ae3" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger_44645a4c-c0ed-41ac-af04-54137c2e628e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLossAbstract_611013eb-381f-4a32-bec3-f64787f3531a" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger_44645a4c-c0ed-41ac-af04-54137c2e628e" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_1bb9966b-5786-450a-8820-34cc7c5e4ce5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLossAbstract_611013eb-381f-4a32-bec3-f64787f3531a" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_1bb9966b-5786-450a-8820-34cc7c5e4ce5" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition_e6fa0cae-f47c-46c6-b858-24a2ef2438e8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLossAbstract_611013eb-381f-4a32-bec3-f64787f3531a" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition_e6fa0cae-f47c-46c6-b858-24a2ef2438e8" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_4228a1c5-3992-4448-b6af-8f650880bf8a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLossAbstract_611013eb-381f-4a32-bec3-f64787f3531a" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_4228a1c5-3992-4448-b6af-8f650880bf8a" xlink:type="arc" order="6"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.shbi.com/role/InvestmentSecuritiesScheduleofSecuritiesDebtMaturitiesDetails" xlink:type="simple" xlink:href="shbi-20241231.xsd#InvestmentSecuritiesScheduleofSecuritiesDebtMaturitiesDetails"/>
  <link:definitionLink xlink:role="http://www.shbi.com/role/InvestmentSecuritiesScheduleofSecuritiesDebtMaturitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_62949b86-0401-4d4d-9011-434e39fa9c4e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_2136ed28-2065-42ea-a963-3d33a04741bd" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtSecuritiesAvailableForSaleTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_62949b86-0401-4d4d-9011-434e39fa9c4e" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_2136ed28-2065-42ea-a963-3d33a04741bd" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentAxis_8ce08d20-581e-43d0-8ea5-76638640c1fc" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancialInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_2136ed28-2065-42ea-a963-3d33a04741bd" xlink:to="loc_us-gaap_FinancialInstrumentAxis_8ce08d20-581e-43d0-8ea5-76638640c1fc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_8ce08d20-581e-43d0-8ea5-76638640c1fc_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_8ce08d20-581e-43d0-8ea5-76638640c1fc" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_8ce08d20-581e-43d0-8ea5-76638640c1fc_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_e17992a8-6c03-4bb3-b4a4-a516c6c6ae7e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_8ce08d20-581e-43d0-8ea5-76638640c1fc" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_e17992a8-6c03-4bb3-b4a4-a516c6c6ae7e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MortgageBackedSecuritiesIssuedByUSGovernmentSponsoredEnterprisesMember_f6fa46bb-fca9-400d-af0e-deef89777fd1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_MortgageBackedSecuritiesIssuedByUSGovernmentSponsoredEnterprisesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_e17992a8-6c03-4bb3-b4a4-a516c6c6ae7e" xlink:to="loc_us-gaap_MortgageBackedSecuritiesIssuedByUSGovernmentSponsoredEnterprisesMember_f6fa46bb-fca9-400d-af0e-deef89777fd1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAmortizedCostAbstract_3f53faa1-1e25-4c53-96ee-a1597a63f785" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAmortizedCostAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_62949b86-0401-4d4d-9011-434e39fa9c4e" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAmortizedCostAbstract_3f53faa1-1e25-4c53-96ee-a1597a63f785" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAmortizedCostBasisAbstract_136e3c07-a340-4f66-bcf3-8a513b8eebfc" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAmortizedCostBasisAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAmortizedCostAbstract_3f53faa1-1e25-4c53-96ee-a1597a63f785" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAmortizedCostBasisAbstract_136e3c07-a340-4f66-bcf3-8a513b8eebfc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost_9f11638e-1c2f-45d2-9ba4-7847c8905810" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAmortizedCostBasisAbstract_136e3c07-a340-4f66-bcf3-8a513b8eebfc" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost_9f11638e-1c2f-45d2-9ba4-7847c8905810" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost_66b38dd0-1fdd-4ae9-b155-d5e09d984086" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAmortizedCostBasisAbstract_136e3c07-a340-4f66-bcf3-8a513b8eebfc" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost_66b38dd0-1fdd-4ae9-b155-d5e09d984086" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost_39c0af9d-c302-4bcb-9659-1441e960f76f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAmortizedCostBasisAbstract_136e3c07-a340-4f66-bcf3-8a513b8eebfc" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost_39c0af9d-c302-4bcb-9659-1441e960f76f" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost_657a2d9b-0359-4fc8-884e-95a4085ed1a2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAmortizedCostBasisAbstract_136e3c07-a340-4f66-bcf3-8a513b8eebfc" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost_657a2d9b-0359-4fc8-884e-95a4085ed1a2" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAmortizedCostBasis_b1bf2c77-05e9-4811-b141-72a4c93bf5a4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAmortizedCostBasis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAmortizedCostBasisAbstract_136e3c07-a340-4f66-bcf3-8a513b8eebfc" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAmortizedCostBasis_b1bf2c77-05e9-4811-b141-72a4c93bf5a4" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithoutSingleMaturityDateAmortizedCost_0a53bc43-751b-4604-b701-43b1c5e2085b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithoutSingleMaturityDateAmortizedCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAmortizedCostBasisAbstract_136e3c07-a340-4f66-bcf3-8a513b8eebfc" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithoutSingleMaturityDateAmortizedCost_0a53bc43-751b-4604-b701-43b1c5e2085b" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss_4bd33f77-daf5-4925-baff-fc6bc3808a26" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAmortizedCostBasisAbstract_136e3c07-a340-4f66-bcf3-8a513b8eebfc" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss_4bd33f77-daf5-4925-baff-fc6bc3808a26" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAbstract_586b5948-4bf7-41f6-8f34-f5ff4892c05c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAmortizedCostAbstract_3f53faa1-1e25-4c53-96ee-a1597a63f785" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAbstract_586b5948-4bf7-41f6-8f34-f5ff4892c05c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue_4f08de1d-d2bd-40e9-a9ae-0c019991c0ae" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAbstract_586b5948-4bf7-41f6-8f34-f5ff4892c05c" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue_4f08de1d-d2bd-40e9-a9ae-0c019991c0ae" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_8408e99b-fd75-4c79-a428-15c90cc0cba7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAbstract_586b5948-4bf7-41f6-8f34-f5ff4892c05c" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_8408e99b-fd75-4c79-a428-15c90cc0cba7" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue_1d3effb8-83e6-4ccb-a7ee-db567f5d8c8b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAbstract_586b5948-4bf7-41f6-8f34-f5ff4892c05c" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue_1d3effb8-83e6-4ccb-a7ee-db567f5d8c8b" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue_50a813b8-afb3-4191-b804-80f5a666aab3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAbstract_586b5948-4bf7-41f6-8f34-f5ff4892c05c" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue_50a813b8-afb3-4191-b804-80f5a666aab3" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDate_d147e804-f1f9-42c8-a8b8-b445e18e49fe" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAbstract_586b5948-4bf7-41f6-8f34-f5ff4892c05c" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDate_d147e804-f1f9-42c8-a8b8-b445e18e49fe" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithoutSingleMaturityDateFairValue_6c820464-d75e-4b90-a44d-bacddd761ff0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithoutSingleMaturityDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAbstract_586b5948-4bf7-41f6-8f34-f5ff4892c05c" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithoutSingleMaturityDateFairValue_6c820464-d75e-4b90-a44d-bacddd761ff0" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_3f2e119f-4313-44d6-b3d2-205c13e2a6ed" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAbstract_586b5948-4bf7-41f6-8f34-f5ff4892c05c" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_3f2e119f-4313-44d6-b3d2-205c13e2a6ed" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestAfterAllowanceForCreditLossMaturityAbstract_81f99203-d2fe-4e2e-9de1-ed7ba4e7dadb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestAfterAllowanceForCreditLossMaturityAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_62949b86-0401-4d4d-9011-434e39fa9c4e" xlink:to="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestAfterAllowanceForCreditLossMaturityAbstract_81f99203-d2fe-4e2e-9de1-ed7ba4e7dadb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossMaturityAllocatedAndSingleMaturityDateAbstract_774736bf-0c5d-4690-ba0e-7e140019e024" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossMaturityAllocatedAndSingleMaturityDateAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestAfterAllowanceForCreditLossMaturityAbstract_81f99203-d2fe-4e2e-9de1-ed7ba4e7dadb" xlink:to="loc_us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossMaturityAllocatedAndSingleMaturityDateAbstract_774736bf-0c5d-4690-ba0e-7e140019e024" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossMaturityAllocatedAndSingleMaturityDateYearOne_9a50179f-2e06-4470-ae86-4a2bac79f785" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossMaturityAllocatedAndSingleMaturityDateYearOne"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossMaturityAllocatedAndSingleMaturityDateAbstract_774736bf-0c5d-4690-ba0e-7e140019e024" xlink:to="loc_us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossMaturityAllocatedAndSingleMaturityDateYearOne_9a50179f-2e06-4470-ae86-4a2bac79f785" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossMaturityAllocatedAndSingleMaturityDateAfterYearOneThroughFive_5d0391bf-a95e-407a-9322-b9ec9edce028" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossMaturityAllocatedAndSingleMaturityDateAfterYearOneThroughFive"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossMaturityAllocatedAndSingleMaturityDateAbstract_774736bf-0c5d-4690-ba0e-7e140019e024" xlink:to="loc_us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossMaturityAllocatedAndSingleMaturityDateAfterYearOneThroughFive_5d0391bf-a95e-407a-9322-b9ec9edce028" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossMaturityAllocatedAndSingleMaturityDateAfterYear5Through10_407dfdb6-e7ed-4052-8094-18734ebd6083" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossMaturityAllocatedAndSingleMaturityDateAfterYear5Through10"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossMaturityAllocatedAndSingleMaturityDateAbstract_774736bf-0c5d-4690-ba0e-7e140019e024" xlink:to="loc_us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossMaturityAllocatedAndSingleMaturityDateAfterYear5Through10_407dfdb6-e7ed-4052-8094-18734ebd6083" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossMaturityAllocatedAndSingleMaturityDateAfterYear10_e695863b-08d3-4c0f-bbf2-256225c61677" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossMaturityAllocatedAndSingleMaturityDateAfterYear10"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossMaturityAllocatedAndSingleMaturityDateAbstract_774736bf-0c5d-4690-ba0e-7e140019e024" xlink:to="loc_us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossMaturityAllocatedAndSingleMaturityDateAfterYear10_e695863b-08d3-4c0f-bbf2-256225c61677" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossMaturityAllocatedAndSingleMaturityDate_ac0d8127-2cdc-4e01-b689-de8f5a500346" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossMaturityAllocatedAndSingleMaturityDate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossMaturityAllocatedAndSingleMaturityDateAbstract_774736bf-0c5d-4690-ba0e-7e140019e024" xlink:to="loc_us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossMaturityAllocatedAndSingleMaturityDate_ac0d8127-2cdc-4e01-b689-de8f5a500346" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossMaturityWithoutSingleMaturityDate_f34ec670-f059-4ef0-aad6-b290f4c056b7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossMaturityWithoutSingleMaturityDate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossMaturityAllocatedAndSingleMaturityDateAbstract_774736bf-0c5d-4690-ba0e-7e140019e024" xlink:to="loc_us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossMaturityWithoutSingleMaturityDate_f34ec670-f059-4ef0-aad6-b290f4c056b7" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestBeforeAllowanceForCreditLoss_6fe5faf7-bcda-46bf-81a9-53da293892c9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestBeforeAllowanceForCreditLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossMaturityAllocatedAndSingleMaturityDateAbstract_774736bf-0c5d-4690-ba0e-7e140019e024" xlink:to="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestBeforeAllowanceForCreditLoss_6fe5faf7-bcda-46bf-81a9-53da293892c9" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesSingleMaturityDateFairValueAbstract_080cf4a3-b1e0-4c56-974f-ba65896e1b5f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesSingleMaturityDateFairValueAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestAfterAllowanceForCreditLossMaturityAbstract_81f99203-d2fe-4e2e-9de1-ed7ba4e7dadb" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesSingleMaturityDateFairValueAbstract_080cf4a3-b1e0-4c56-974f-ba65896e1b5f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesWithinOneYearFairValue_9ab9f8fb-25f5-4dab-a251-eb02f132aea8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesWithinOneYearFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesSingleMaturityDateFairValueAbstract_080cf4a3-b1e0-4c56-974f-ba65896e1b5f" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesWithinOneYearFairValue_9ab9f8fb-25f5-4dab-a251-eb02f132aea8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_92a104d3-d7c3-4228-be4e-1a045dd15f6c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesSingleMaturityDateFairValueAbstract_080cf4a3-b1e0-4c56-974f-ba65896e1b5f" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_92a104d3-d7c3-4228-be4e-1a045dd15f6c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue_f8bc84d2-df31-4618-818a-4ccd5fd632ea" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesSingleMaturityDateFairValueAbstract_080cf4a3-b1e0-4c56-974f-ba65896e1b5f" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue_f8bc84d2-df31-4618-818a-4ccd5fd632ea" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterTenYearsFairValue_7f7e08eb-36ac-48da-936a-90d41d5af346" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterTenYearsFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesSingleMaturityDateFairValueAbstract_080cf4a3-b1e0-4c56-974f-ba65896e1b5f" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterTenYearsFairValue_7f7e08eb-36ac-48da-936a-90d41d5af346" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesSingleMaturityDateFairValue_382bcc9d-e4eb-4beb-bb13-191ac3296100" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesSingleMaturityDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesSingleMaturityDateFairValueAbstract_080cf4a3-b1e0-4c56-974f-ba65896e1b5f" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesSingleMaturityDateFairValue_382bcc9d-e4eb-4beb-bb13-191ac3296100" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesWithoutSingleMaturityDateFairValue_eee6be0b-c021-41de-8191-f0a0950b4ce1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesWithoutSingleMaturityDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesSingleMaturityDateFairValueAbstract_080cf4a3-b1e0-4c56-974f-ba65896e1b5f" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesWithoutSingleMaturityDateFairValue_eee6be0b-c021-41de-8191-f0a0950b4ce1" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesFairValue_ac83bd24-1454-498a-81cc-d688ac0f651d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_HeldToMaturitySecuritiesFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesSingleMaturityDateFairValueAbstract_080cf4a3-b1e0-4c56-974f-ba65896e1b5f" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesFairValue_ac83bd24-1454-498a-81cc-d688ac0f651d" xlink:type="arc" order="7"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.shbi.com/role/InvestmentSecuritiesAmortizedCostandEstimatedFairValuesofSecuritiesDetails" xlink:type="simple" xlink:href="shbi-20241231.xsd#InvestmentSecuritiesAmortizedCostandEstimatedFairValuesofSecuritiesDetails"/>
  <link:definitionLink xlink:role="http://www.shbi.com/role/InvestmentSecuritiesAmortizedCostandEstimatedFairValuesofSecuritiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_85eec4e2-7485-4a26-aa92-41cfe9a06248" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_d0daf816-56a7-4fa1-81e0-1bb78cc46095" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtSecuritiesAvailableForSaleTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_85eec4e2-7485-4a26-aa92-41cfe9a06248" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_d0daf816-56a7-4fa1-81e0-1bb78cc46095" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CollateralAxis_4709a4ef-3886-411b-8771-7356b0c0c193" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CollateralAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_d0daf816-56a7-4fa1-81e0-1bb78cc46095" xlink:to="loc_us-gaap_CollateralAxis_4709a4ef-3886-411b-8771-7356b0c0c193" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CollateralDomain_4709a4ef-3886-411b-8771-7356b0c0c193_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CollateralDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CollateralAxis_4709a4ef-3886-411b-8771-7356b0c0c193" xlink:to="loc_us-gaap_CollateralDomain_4709a4ef-3886-411b-8771-7356b0c0c193_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CollateralDomain_bc4c578b-b1d7-40ee-ba11-3a5b700859f1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CollateralDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CollateralAxis_4709a4ef-3886-411b-8771-7356b0c0c193" xlink:to="loc_us-gaap_CollateralDomain_bc4c578b-b1d7-40ee-ba11-3a5b700859f1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CollateralPledgedMember_d732f509-ea6a-4bc2-bbb2-42a6ff157cbf" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CollateralPledgedMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CollateralDomain_bc4c578b-b1d7-40ee-ba11-3a5b700859f1" xlink:to="loc_us-gaap_CollateralPledgedMember_d732f509-ea6a-4bc2-bbb2-42a6ff157cbf" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossAbstract_eb59ec49-c3e0-4b47-b302-fb1cf3720de1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_85eec4e2-7485-4a26-aa92-41cfe9a06248" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossAbstract_eb59ec49-c3e0-4b47-b302-fb1cf3720de1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss_47c4b13b-53c8-4e10-8b0c-1e275996b482" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossAbstract_eb59ec49-c3e0-4b47-b302-fb1cf3720de1" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss_47c4b13b-53c8-4e10-8b0c-1e275996b482" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleRestricted_059120d5-cb7f-40e5-9d25-ba714492058a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtSecuritiesAvailableForSaleRestricted"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossAbstract_eb59ec49-c3e0-4b47-b302-fb1cf3720de1" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleRestricted_059120d5-cb7f-40e5-9d25-ba714492058a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestAfterAllowanceForCreditLossAbstract_24981fe3-d836-41c1-a515-8a3dcc3f0c49" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestAfterAllowanceForCreditLossAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_85eec4e2-7485-4a26-aa92-41cfe9a06248" xlink:to="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestAfterAllowanceForCreditLossAbstract_24981fe3-d836-41c1-a515-8a3dcc3f0c49" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestBeforeAllowanceForCreditLoss_79eb520a-5d73-4e86-9f7b-2c1b887ce8b0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestBeforeAllowanceForCreditLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestAfterAllowanceForCreditLossAbstract_24981fe3-d836-41c1-a515-8a3dcc3f0c49" xlink:to="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestBeforeAllowanceForCreditLoss_79eb520a-5d73-4e86-9f7b-2c1b887ce8b0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesFairValue_675876f9-13d3-4535-91cf-bfb8eebeb3c5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_HeldToMaturitySecuritiesFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestAfterAllowanceForCreditLossAbstract_24981fe3-d836-41c1-a515-8a3dcc3f0c49" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesFairValue_675876f9-13d3-4535-91cf-bfb8eebeb3c5" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.shbi.com/role/LoansandAllowanceforCreditLossesLoansbyClassofLoanPortfolioDetails" xlink:type="simple" xlink:href="shbi-20241231.xsd#LoansandAllowanceforCreditLossesLoansbyClassofLoanPortfolioDetails"/>
  <link:definitionLink xlink:role="http://www.shbi.com/role/LoansandAllowanceforCreditLossesLoansbyClassofLoanPortfolioDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LoansAndLeasesReceivableDisclosureLineItems_9d41671f-2a72-437e-a3f6-ab49bb4f00dd" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LoansAndLeasesReceivableDisclosureLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LoansAndLeasesReceivableDisclosureTable_54c99832-1aa6-4593-a47a-d187da8e2730" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LoansAndLeasesReceivableDisclosureTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LoansAndLeasesReceivableDisclosureLineItems_9d41671f-2a72-437e-a3f6-ab49bb4f00dd" xlink:to="loc_us-gaap_LoansAndLeasesReceivableDisclosureTable_54c99832-1aa6-4593-a47a-d187da8e2730" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_7443e940-2ed1-4b2b-aa6a-43fae5abacce" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivablePortfolioSegmentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LoansAndLeasesReceivableDisclosureTable_54c99832-1aa6-4593-a47a-d187da8e2730" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_7443e940-2ed1-4b2b-aa6a-43fae5abacce" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_7443e940-2ed1-4b2b-aa6a-43fae5abacce_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_7443e940-2ed1-4b2b-aa6a-43fae5abacce" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_7443e940-2ed1-4b2b-aa6a-43fae5abacce_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_b1e11a43-cbf4-4772-aec9-b076ad254b48" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_7443e940-2ed1-4b2b-aa6a-43fae5abacce" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_b1e11a43-cbf4-4772-aec9-b076ad254b48" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommercialRealEstatePortfolioSegmentMember_8cafcea2-ba38-4a5e-9eba-30dab130ad09" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommercialRealEstatePortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_b1e11a43-cbf4-4772-aec9-b076ad254b48" xlink:to="loc_us-gaap_CommercialRealEstatePortfolioSegmentMember_8cafcea2-ba38-4a5e-9eba-30dab130ad09" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResidentialPortfolioSegmentMember_721244e3-6721-4802-9568-0e5a49a4c2fa" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ResidentialPortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_b1e11a43-cbf4-4772-aec9-b076ad254b48" xlink:to="loc_us-gaap_ResidentialPortfolioSegmentMember_721244e3-6721-4802-9568-0e5a49a4c2fa" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_ConstructionPortfolioSegmentMember_6c474c4d-58e5-480e-af3e-ba31f24adb60" xlink:href="shbi-20241231.xsd#shbi_ConstructionPortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_b1e11a43-cbf4-4772-aec9-b076ad254b48" xlink:to="loc_shbi_ConstructionPortfolioSegmentMember_6c474c4d-58e5-480e-af3e-ba31f24adb60" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommercialPortfolioSegmentMember_65da6504-e18f-4f31-a057-f8aa6b47e913" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommercialPortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_b1e11a43-cbf4-4772-aec9-b076ad254b48" xlink:to="loc_us-gaap_CommercialPortfolioSegmentMember_65da6504-e18f-4f31-a057-f8aa6b47e913" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConsumerPortfolioSegmentMember_a8c024a9-3c89-4adc-a46c-71c0d5b3eb18" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ConsumerPortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_b1e11a43-cbf4-4772-aec9-b076ad254b48" xlink:to="loc_us-gaap_ConsumerPortfolioSegmentMember_a8c024a9-3c89-4adc-a46c-71c0d5b3eb18" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_CreditCardPortfolioSegmentMember_72e492cc-2efe-429e-a3a7-057c53c5b7aa" xlink:href="shbi-20241231.xsd#shbi_CreditCardPortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_b1e11a43-cbf4-4772-aec9-b076ad254b48" xlink:to="loc_shbi_CreditCardPortfolioSegmentMember_72e492cc-2efe-429e-a3a7-057c53c5b7aa" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_1f6ee1f7-c637-4720-b2c8-bcd700515526" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LoansAndLeasesReceivableDisclosureLineItems_9d41671f-2a72-437e-a3f6-ab49bb4f00dd" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_1f6ee1f7-c637-4720-b2c8-bcd700515526" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLossPercentageOfTotalBalance_64084ae8-98b0-4dc1-be1d-d0c0847adae3" xlink:href="shbi-20241231.xsd#shbi_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLossPercentageOfTotalBalance"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LoansAndLeasesReceivableDisclosureLineItems_9d41671f-2a72-437e-a3f6-ab49bb4f00dd" xlink:to="loc_shbi_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLossPercentageOfTotalBalance_64084ae8-98b0-4dc1-be1d-d0c0847adae3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest_8b89af0c-b606-492d-b215-1dbe28ad6107" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LoansAndLeasesReceivableDisclosureLineItems_9d41671f-2a72-437e-a3f6-ab49bb4f00dd" xlink:to="loc_us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest_8b89af0c-b606-492d-b215-1dbe28ad6107" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_8a89ef4f-7692-46e5-b2f7-f9370161fe58" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LoansAndLeasesReceivableDisclosureLineItems_9d41671f-2a72-437e-a3f6-ab49bb4f00dd" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_8a89ef4f-7692-46e5-b2f7-f9370161fe58" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.shbi.com/role/LoansandAllowanceforCreditLossesNarrativeDetails" xlink:type="simple" xlink:href="shbi-20241231.xsd#LoansandAllowanceforCreditLossesNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.shbi.com/role/LoansandAllowanceforCreditLossesNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_c8fa91a7-6274-454e-b485-5b8094df4c02" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_7aa7bdc1-6844-42c0-9bdd-d2d5547d2264" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_c8fa91a7-6274-454e-b485-5b8094df4c02" xlink:to="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_7aa7bdc1-6844-42c0-9bdd-d2d5547d2264" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_b7335859-fb5e-4329-8248-75d6315e0280" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BusinessAcquisitionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_7aa7bdc1-6844-42c0-9bdd-d2d5547d2264" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_b7335859-fb5e-4329-8248-75d6315e0280" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_b7335859-fb5e-4329-8248-75d6315e0280_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_b7335859-fb5e-4329-8248-75d6315e0280" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_b7335859-fb5e-4329-8248-75d6315e0280_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_96012df2-1cae-4a74-848c-76849acc2ba6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_b7335859-fb5e-4329-8248-75d6315e0280" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_96012df2-1cae-4a74-848c-76849acc2ba6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_SevernBancorpInc.AndTCFCMember_4f8ef033-d077-4c2e-9719-9b720fecbef7" xlink:href="shbi-20241231.xsd#shbi_SevernBancorpInc.AndTCFCMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_96012df2-1cae-4a74-848c-76849acc2ba6" xlink:to="loc_shbi_SevernBancorpInc.AndTCFCMember_4f8ef033-d077-4c2e-9719-9b720fecbef7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LoansInsuredOrGuaranteedByGovernmentAuthoritiesAxis_bdd78970-7e21-4340-b96c-2ac462f1ec71" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LoansInsuredOrGuaranteedByGovernmentAuthoritiesAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_7aa7bdc1-6844-42c0-9bdd-d2d5547d2264" xlink:to="loc_us-gaap_LoansInsuredOrGuaranteedByGovernmentAuthoritiesAxis_bdd78970-7e21-4340-b96c-2ac462f1ec71" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LoansInsuredOrGuaranteedByGovernmentAuthoritiesDomain_bdd78970-7e21-4340-b96c-2ac462f1ec71_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LoansInsuredOrGuaranteedByGovernmentAuthoritiesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LoansInsuredOrGuaranteedByGovernmentAuthoritiesAxis_bdd78970-7e21-4340-b96c-2ac462f1ec71" xlink:to="loc_us-gaap_LoansInsuredOrGuaranteedByGovernmentAuthoritiesDomain_bdd78970-7e21-4340-b96c-2ac462f1ec71_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LoansInsuredOrGuaranteedByGovernmentAuthoritiesDomain_bdd8e771-fef7-4ba2-959e-d70d8647af5c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LoansInsuredOrGuaranteedByGovernmentAuthoritiesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LoansInsuredOrGuaranteedByGovernmentAuthoritiesAxis_bdd78970-7e21-4340-b96c-2ac462f1ec71" xlink:to="loc_us-gaap_LoansInsuredOrGuaranteedByGovernmentAuthoritiesDomain_bdd8e771-fef7-4ba2-959e-d70d8647af5c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalNationalMortgageAssociationFnmaInsuredLoansMember_fc6e2803-0ae1-4948-937d-cd7adee08498" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FederalNationalMortgageAssociationFnmaInsuredLoansMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LoansInsuredOrGuaranteedByGovernmentAuthoritiesDomain_bdd8e771-fef7-4ba2-959e-d70d8647af5c" xlink:to="loc_us-gaap_FederalNationalMortgageAssociationFnmaInsuredLoansMember_fc6e2803-0ae1-4948-937d-cd7adee08498" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanMortgageCorporationFhlmcInsuredLoansMember_6e5e658b-5522-4da7-b211-25b4912b2de7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FederalHomeLoanMortgageCorporationFhlmcInsuredLoansMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LoansInsuredOrGuaranteedByGovernmentAuthoritiesDomain_bdd8e771-fef7-4ba2-959e-d70d8647af5c" xlink:to="loc_us-gaap_FederalHomeLoanMortgageCorporationFhlmcInsuredLoansMember_6e5e658b-5522-4da7-b211-25b4912b2de7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_63d9a33e-35b4-4c35-be3e-766f7bd2ff36" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivablePortfolioSegmentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_7aa7bdc1-6844-42c0-9bdd-d2d5547d2264" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_63d9a33e-35b4-4c35-be3e-766f7bd2ff36" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_63d9a33e-35b4-4c35-be3e-766f7bd2ff36_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_63d9a33e-35b4-4c35-be3e-766f7bd2ff36" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_63d9a33e-35b4-4c35-be3e-766f7bd2ff36_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_7b5b0d0b-b106-47bf-936f-dd981c29c3ed" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_63d9a33e-35b4-4c35-be3e-766f7bd2ff36" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_7b5b0d0b-b106-47bf-936f-dd981c29c3ed" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_CreditCardPortfolioSegmentMember_ee1522e6-5cc3-4f5e-ab08-6464e5b85f93" xlink:href="shbi-20241231.xsd#shbi_CreditCardPortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_7b5b0d0b-b106-47bf-936f-dd981c29c3ed" xlink:to="loc_shbi_CreditCardPortfolioSegmentMember_ee1522e6-5cc3-4f5e-ab08-6464e5b85f93" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommercialRealEstatePortfolioSegmentMember_5b427c4d-44d2-4763-b0e5-0e6c63ad4cc7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommercialRealEstatePortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_7b5b0d0b-b106-47bf-936f-dd981c29c3ed" xlink:to="loc_us-gaap_CommercialRealEstatePortfolioSegmentMember_5b427c4d-44d2-4763-b0e5-0e6c63ad4cc7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommercialPortfolioSegmentMember_ec2c5557-1f6d-4f3e-a17e-abebe05b4466" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommercialPortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_7b5b0d0b-b106-47bf-936f-dd981c29c3ed" xlink:to="loc_us-gaap_CommercialPortfolioSegmentMember_ec2c5557-1f6d-4f3e-a17e-abebe05b4466" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResidentialPortfolioSegmentMember_784f495a-b188-4dd0-a59e-058deb05775c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ResidentialPortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_7b5b0d0b-b106-47bf-936f-dd981c29c3ed" xlink:to="loc_us-gaap_ResidentialPortfolioSegmentMember_784f495a-b188-4dd0-a59e-058deb05775c" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConsumerPortfolioSegmentMember_6042e8ec-1bd1-4bbb-ace8-bc76df1bafd7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ConsumerPortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_7b5b0d0b-b106-47bf-936f-dd981c29c3ed" xlink:to="loc_us-gaap_ConsumerPortfolioSegmentMember_6042e8ec-1bd1-4bbb-ace8-bc76df1bafd7" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablesPeriodPastDueAxis_febed0bf-22b5-406c-a27d-7975aab986eb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivablesPeriodPastDueAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_7aa7bdc1-6844-42c0-9bdd-d2d5547d2264" xlink:to="loc_us-gaap_FinancingReceivablesPeriodPastDueAxis_febed0bf-22b5-406c-a27d-7975aab986eb" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_febed0bf-22b5-406c-a27d-7975aab986eb_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivablesPeriodPastDueDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivablesPeriodPastDueAxis_febed0bf-22b5-406c-a27d-7975aab986eb" xlink:to="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_febed0bf-22b5-406c-a27d-7975aab986eb_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_5909e60f-cf74-4598-b3ec-90fb90b20ac9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivablesPeriodPastDueDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivablesPeriodPastDueAxis_febed0bf-22b5-406c-a27d-7975aab986eb" xlink:to="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_5909e60f-cf74-4598-b3ec-90fb90b20ac9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialAssetNotPastDueMember_04a86fa2-ecb7-4acc-9047-d79b58b2537f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancialAssetNotPastDueMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_5909e60f-cf74-4598-b3ec-90fb90b20ac9" xlink:to="loc_us-gaap_FinancialAssetNotPastDueMember_04a86fa2-ecb7-4acc-9047-d79b58b2537f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_8a102bb5-e7ca-42c0-aad8-66ab46870ae7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_7aa7bdc1-6844-42c0-9bdd-d2d5547d2264" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_8a102bb5-e7ca-42c0-aad8-66ab46870ae7" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_8a102bb5-e7ca-42c0-aad8-66ab46870ae7_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_8a102bb5-e7ca-42c0-aad8-66ab46870ae7" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_8a102bb5-e7ca-42c0-aad8-66ab46870ae7_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_c2796c8c-4f73-442a-86dc-bf66327cf12c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_8a102bb5-e7ca-42c0-aad8-66ab46870ae7" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_c2796c8c-4f73-442a-86dc-bf66327cf12c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel3Member_81e4cfae-1416-4c7d-ba8f-b7272e0a7f08" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueInputsLevel3Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_c2796c8c-4f73-442a-86dc-bf66327cf12c" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_81e4cfae-1416-4c7d-ba8f-b7272e0a7f08" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByMeasurementFrequencyAxis_cfb98bc4-2e7c-4fca-b79b-75659b038c69" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueByMeasurementFrequencyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_7aa7bdc1-6844-42c0-9bdd-d2d5547d2264" xlink:to="loc_us-gaap_FairValueByMeasurementFrequencyAxis_cfb98bc4-2e7c-4fca-b79b-75659b038c69" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_cfb98bc4-2e7c-4fca-b79b-75659b038c69_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueMeasurementFrequencyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_cfb98bc4-2e7c-4fca-b79b-75659b038c69" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_cfb98bc4-2e7c-4fca-b79b-75659b038c69_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_41b81b0f-a27e-4fd5-8637-a741a8fa0a7f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueMeasurementFrequencyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_cfb98bc4-2e7c-4fca-b79b-75659b038c69" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_41b81b0f-a27e-4fd5-8637-a741a8fa0a7f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsNonrecurringMember_9e4f3201-ef2a-425b-aa86-24158b6a598c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueMeasurementsNonrecurringMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementFrequencyDomain_41b81b0f-a27e-4fd5-8637-a741a8fa0a7f" xlink:to="loc_us-gaap_FairValueMeasurementsNonrecurringMember_9e4f3201-ef2a-425b-aa86-24158b6a598c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ValuationTechniqueAxis_460c837a-41dc-493d-abe5-d0b1d5b78ac2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ValuationTechniqueAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_7aa7bdc1-6844-42c0-9bdd-d2d5547d2264" xlink:to="loc_us-gaap_ValuationTechniqueAxis_460c837a-41dc-493d-abe5-d0b1d5b78ac2" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ValuationTechniqueDomain_460c837a-41dc-493d-abe5-d0b1d5b78ac2_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ValuationTechniqueDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ValuationTechniqueAxis_460c837a-41dc-493d-abe5-d0b1d5b78ac2" xlink:to="loc_us-gaap_ValuationTechniqueDomain_460c837a-41dc-493d-abe5-d0b1d5b78ac2_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ValuationTechniqueDomain_83eeb593-9e84-4ee4-9880-7d955763f8fd" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ValuationTechniqueDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ValuationTechniqueAxis_460c837a-41dc-493d-abe5-d0b1d5b78ac2" xlink:to="loc_us-gaap_ValuationTechniqueDomain_83eeb593-9e84-4ee4-9880-7d955763f8fd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_AppraisalOfCollateralMember_fc3dccb1-1208-4582-9e1d-e774cef72f6b" xlink:href="shbi-20241231.xsd#shbi_AppraisalOfCollateralMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ValuationTechniqueDomain_83eeb593-9e84-4ee4-9880-7d955763f8fd" xlink:to="loc_shbi_AppraisalOfCollateralMember_fc3dccb1-1208-4582-9e1d-e774cef72f6b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_386821a2-f323-472f-a002-85b77597bced" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_7aa7bdc1-6844-42c0-9bdd-d2d5547d2264" xlink:to="loc_srt_RangeAxis_386821a2-f323-472f-a002-85b77597bced" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_386821a2-f323-472f-a002-85b77597bced_default" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_386821a2-f323-472f-a002-85b77597bced" xlink:to="loc_srt_RangeMember_386821a2-f323-472f-a002-85b77597bced_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_88777a0f-b286-44d8-8aa5-e583c67ecc1b" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_386821a2-f323-472f-a002-85b77597bced" xlink:to="loc_srt_RangeMember_88777a0f-b286-44d8-8aa5-e583c67ecc1b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_8d9871d3-1ab6-43d7-8f38-d8d8197764bd" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_88777a0f-b286-44d8-8aa5-e583c67ecc1b" xlink:to="loc_srt_MinimumMember_8d9871d3-1ab6-43d7-8f38-d8d8197764bd" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_66ce4a08-0177-4990-a38c-1ddb2cbe84f9" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_88777a0f-b286-44d8-8aa5-e583c67ecc1b" xlink:to="loc_srt_MaximumMember_66ce4a08-0177-4990-a38c-1ddb2cbe84f9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_WeightedAverageMember_d6373825-72ba-48c9-80e3-f4e589dd8093" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_WeightedAverageMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_88777a0f-b286-44d8-8aa5-e583c67ecc1b" xlink:to="loc_srt_WeightedAverageMember_d6373825-72ba-48c9-80e3-f4e589dd8093" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputTypeAxis_31d2b06b-31ff-4495-93ed-e2c56681a66f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_MeasurementInputTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_7aa7bdc1-6844-42c0-9bdd-d2d5547d2264" xlink:to="loc_us-gaap_MeasurementInputTypeAxis_31d2b06b-31ff-4495-93ed-e2c56681a66f" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputTypeDomain_31d2b06b-31ff-4495-93ed-e2c56681a66f_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_MeasurementInputTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_MeasurementInputTypeAxis_31d2b06b-31ff-4495-93ed-e2c56681a66f" xlink:to="loc_us-gaap_MeasurementInputTypeDomain_31d2b06b-31ff-4495-93ed-e2c56681a66f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputTypeDomain_599c9424-f569-401a-aa70-ec6d16ec79eb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_MeasurementInputTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_MeasurementInputTypeAxis_31d2b06b-31ff-4495-93ed-e2c56681a66f" xlink:to="loc_us-gaap_MeasurementInputTypeDomain_599c9424-f569-401a-aa70-ec6d16ec79eb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputDiscountRateMember_b3671149-64ee-4ae2-9b97-70c49679b0e3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_MeasurementInputDiscountRateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MeasurementInputTypeDomain_599c9424-f569-401a-aa70-ec6d16ec79eb" xlink:to="loc_us-gaap_MeasurementInputDiscountRateMember_b3671149-64ee-4ae2-9b97-70c49679b0e3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputPrepaymentRateMember_494e774a-f2db-4614-a439-965d30c6e567" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_MeasurementInputPrepaymentRateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MeasurementInputTypeDomain_599c9424-f569-401a-aa70-ec6d16ec79eb" xlink:to="loc_us-gaap_MeasurementInputPrepaymentRateMember_494e774a-f2db-4614-a439-965d30c6e567" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableUnamortizedLoanFeeCost_afb1aee7-a18e-402f-848d-85a02b47b6a1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableUnamortizedLoanFeeCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_c8fa91a7-6274-454e-b485-5b8094df4c02" xlink:to="loc_us-gaap_FinancingReceivableUnamortizedLoanFeeCost_afb1aee7-a18e-402f-848d-85a02b47b6a1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLoans_da3263ba-5138-4431-a8a3-c8af13d09a79" xlink:href="shbi-20241231.xsd#shbi_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLoans"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_c8fa91a7-6274-454e-b485-5b8094df4c02" xlink:to="loc_shbi_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLoans_da3263ba-5138-4431-a8a3-c8af13d09a79" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedFinancingReceivableRelatedDiscount_430862ee-4e1b-4c62-9bbe-cb5744521a79" xlink:href="shbi-20241231.xsd#shbi_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedFinancingReceivableRelatedDiscount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_c8fa91a7-6274-454e-b485-5b8094df4c02" xlink:to="loc_shbi_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedFinancingReceivableRelatedDiscount_430862ee-4e1b-4c62-9bbe-cb5744521a79" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_51bde5ab-5100-4b71-82f2-ed3da4e017dc" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_c8fa91a7-6274-454e-b485-5b8094df4c02" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_51bde5ab-5100-4b71-82f2-ed3da4e017dc" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_FinancingReceivableInternalAssessmentRatingDowngradedNumberOfLoans_3f1e83b5-b85c-4e9b-a8ed-117ef227b8b2" xlink:href="shbi-20241231.xsd#shbi_FinancingReceivableInternalAssessmentRatingDowngradedNumberOfLoans"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_c8fa91a7-6274-454e-b485-5b8094df4c02" xlink:to="loc_shbi_FinancingReceivableInternalAssessmentRatingDowngradedNumberOfLoans_3f1e83b5-b85c-4e9b-a8ed-117ef227b8b2" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableModificationsNumberOfContracts2_6e291362-623d-4b97-a7b7-db840ec6639d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableModificationsNumberOfContracts2"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_c8fa91a7-6274-454e-b485-5b8094df4c02" xlink:to="loc_us-gaap_FinancingReceivableModificationsNumberOfContracts2_6e291362-623d-4b97-a7b7-db840ec6639d" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_FinancingReceivableExcludingAccruedInterestModifiedAfter12MonthsNonaccrual_213ffc00-0bda-4fd5-84a7-b0f1722fecc6" xlink:href="shbi-20241231.xsd#shbi_FinancingReceivableExcludingAccruedInterestModifiedAfter12MonthsNonaccrual"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_c8fa91a7-6274-454e-b485-5b8094df4c02" xlink:to="loc_shbi_FinancingReceivableExcludingAccruedInterestModifiedAfter12MonthsNonaccrual_213ffc00-0bda-4fd5-84a7-b0f1722fecc6" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestModifiedPast12Months_7de51c48-c2f7-4da2-aac1-bd97bb26b9d2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestModifiedPast12Months"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_c8fa91a7-6274-454e-b485-5b8094df4c02" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestModifiedPast12Months_7de51c48-c2f7-4da2-aac1-bd97bb26b9d2" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestModifiedSubsequentDefault_5aafa4d8-2a47-4923-a8bb-4101024c81de" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestModifiedSubsequentDefault"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_c8fa91a7-6274-454e-b485-5b8094df4c02" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestModifiedSubsequentDefault_5aafa4d8-2a47-4923-a8bb-4101024c81de" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MortgageLoansInProcessOfForeclosureAmount_528d120d-0eed-4d45-988e-ed9684960d04" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_MortgageLoansInProcessOfForeclosureAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_c8fa91a7-6274-454e-b485-5b8094df4c02" xlink:to="loc_us-gaap_MortgageLoansInProcessOfForeclosureAmount_528d120d-0eed-4d45-988e-ed9684960d04" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherRealEstate_c7199de5-fe60-4148-811f-8d10191fe8c2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherRealEstate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_c8fa91a7-6274-454e-b485-5b8094df4c02" xlink:to="loc_us-gaap_OtherRealEstate_c7199de5-fe60-4148-811f-8d10191fe8c2" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeclosedAssets_501968f3-748a-49b7-91f4-8a86eecd7c2b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ForeclosedAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_c8fa91a7-6274-454e-b485-5b8094df4c02" xlink:to="loc_us-gaap_ForeclosedAssets_501968f3-748a-49b7-91f4-8a86eecd7c2b" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FeesAndCommissionsMortgageBankingAndServicing_ce2ea428-fd13-4a26-9ef1-985362fbf40f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FeesAndCommissionsMortgageBankingAndServicing"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_c8fa91a7-6274-454e-b485-5b8094df4c02" xlink:to="loc_us-gaap_FeesAndCommissionsMortgageBankingAndServicing_ce2ea428-fd13-4a26-9ef1-985362fbf40f" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ServicingAssetMeasurementInput_838fbfb6-0450-494f-93f2-53cb3381b967" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ServicingAssetMeasurementInput"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_c8fa91a7-6274-454e-b485-5b8094df4c02" xlink:to="loc_us-gaap_ServicingAssetMeasurementInput_838fbfb6-0450-494f-93f2-53cb3381b967" xlink:type="arc" order="13"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.shbi.com/role/LoansandAllowanceforCreditLossesNonaccrualLoansbyLoanClassDetails" xlink:type="simple" xlink:href="shbi-20241231.xsd#LoansandAllowanceforCreditLossesNonaccrualLoansbyLoanClassDetails"/>
  <link:definitionLink xlink:role="http://www.shbi.com/role/LoansandAllowanceforCreditLossesNonaccrualLoansbyLoanClassDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableNonaccrualStatusLineItems_64d7ea3b-ef47-46d9-a115-3fb15a2ff091" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableNonaccrualStatusLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableNonaccrualTable_adb1f856-3f4b-4330-88ab-b18117f04df3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableNonaccrualTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FinancingReceivableNonaccrualStatusLineItems_64d7ea3b-ef47-46d9-a115-3fb15a2ff091" xlink:to="loc_us-gaap_FinancingReceivableNonaccrualTable_adb1f856-3f4b-4330-88ab-b18117f04df3" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_9499ca18-24a9-492b-8884-b910da443c55" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivablePortfolioSegmentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FinancingReceivableNonaccrualTable_adb1f856-3f4b-4330-88ab-b18117f04df3" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_9499ca18-24a9-492b-8884-b910da443c55" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_9499ca18-24a9-492b-8884-b910da443c55_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_9499ca18-24a9-492b-8884-b910da443c55" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_9499ca18-24a9-492b-8884-b910da443c55_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_7605ec1f-a993-445b-a371-a96c335cfb38" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_9499ca18-24a9-492b-8884-b910da443c55" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_7605ec1f-a993-445b-a371-a96c335cfb38" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommercialRealEstatePortfolioSegmentMember_b82c312b-34e9-4424-b218-d4cdac749a5f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommercialRealEstatePortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_7605ec1f-a993-445b-a371-a96c335cfb38" xlink:to="loc_us-gaap_CommercialRealEstatePortfolioSegmentMember_b82c312b-34e9-4424-b218-d4cdac749a5f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResidentialPortfolioSegmentMember_a28a9893-9e60-45a6-9073-18802122d51a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ResidentialPortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_7605ec1f-a993-445b-a371-a96c335cfb38" xlink:to="loc_us-gaap_ResidentialPortfolioSegmentMember_a28a9893-9e60-45a6-9073-18802122d51a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_ConstructionPortfolioSegmentMember_abaf981d-bdb1-4767-a8fc-a74b0a72519a" xlink:href="shbi-20241231.xsd#shbi_ConstructionPortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_7605ec1f-a993-445b-a371-a96c335cfb38" xlink:to="loc_shbi_ConstructionPortfolioSegmentMember_abaf981d-bdb1-4767-a8fc-a74b0a72519a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommercialPortfolioSegmentMember_d803e60a-da71-40b5-a910-04969e65f498" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommercialPortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_7605ec1f-a993-445b-a371-a96c335cfb38" xlink:to="loc_us-gaap_CommercialPortfolioSegmentMember_d803e60a-da71-40b5-a910-04969e65f498" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConsumerPortfolioSegmentMember_53738916-f751-42b1-ae32-d65c91ecfeac" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ConsumerPortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_7605ec1f-a993-445b-a371-a96c335cfb38" xlink:to="loc_us-gaap_ConsumerPortfolioSegmentMember_53738916-f751-42b1-ae32-d65c91ecfeac" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_CreditCardPortfolioSegmentMember_9c2b2fdf-70e5-43b1-b44e-5ff8872e1289" xlink:href="shbi-20241231.xsd#shbi_CreditCardPortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_7605ec1f-a993-445b-a371-a96c335cfb38" xlink:to="loc_shbi_CreditCardPortfolioSegmentMember_9c2b2fdf-70e5-43b1-b44e-5ff8872e1289" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestNonaccrualNoAllowance_c2a4fa47-b8b8-46a6-b528-f8cfaaeeb5c8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestNonaccrualNoAllowance"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableNonaccrualStatusLineItems_64d7ea3b-ef47-46d9-a115-3fb15a2ff091" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestNonaccrualNoAllowance_c2a4fa47-b8b8-46a6-b528-f8cfaaeeb5c8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_FinancingReceivableExcludingAccruedInterestNonaccrualWithAllowance_1b5f2802-e3ea-4f1a-b442-fb775096eca3" xlink:href="shbi-20241231.xsd#shbi_FinancingReceivableExcludingAccruedInterestNonaccrualWithAllowance"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableNonaccrualStatusLineItems_64d7ea3b-ef47-46d9-a115-3fb15a2ff091" xlink:to="loc_shbi_FinancingReceivableExcludingAccruedInterestNonaccrualWithAllowance_1b5f2802-e3ea-4f1a-b442-fb775096eca3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestNonaccrual_5d95eae4-97f3-454c-8c50-ab2394cc32f4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestNonaccrual"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableNonaccrualStatusLineItems_64d7ea3b-ef47-46d9-a115-3fb15a2ff091" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestNonaccrual_5d95eae4-97f3-454c-8c50-ab2394cc32f4" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_FinancingReceivableNonaccrualNoAllowanceInterestIncome_74012fb1-a9b6-436f-bab1-163caf027bc5" xlink:href="shbi-20241231.xsd#shbi_FinancingReceivableNonaccrualNoAllowanceInterestIncome"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableNonaccrualStatusLineItems_64d7ea3b-ef47-46d9-a115-3fb15a2ff091" xlink:to="loc_shbi_FinancingReceivableNonaccrualNoAllowanceInterestIncome_74012fb1-a9b6-436f-bab1-163caf027bc5" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_FinancingReceivableExcludingAccruedInterestNonaccrualWithAllowanceInterestIncome_e44c8d4e-3236-4ee2-b991-150081082f35" xlink:href="shbi-20241231.xsd#shbi_FinancingReceivableExcludingAccruedInterestNonaccrualWithAllowanceInterestIncome"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableNonaccrualStatusLineItems_64d7ea3b-ef47-46d9-a115-3fb15a2ff091" xlink:to="loc_shbi_FinancingReceivableExcludingAccruedInterestNonaccrualWithAllowanceInterestIncome_e44c8d4e-3236-4ee2-b991-150081082f35" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableNonaccrualInterestIncome_055710b9-165a-459b-8d36-92d50f4eb44a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableNonaccrualInterestIncome"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableNonaccrualStatusLineItems_64d7ea3b-ef47-46d9-a115-3fb15a2ff091" xlink:to="loc_us-gaap_FinancingReceivableNonaccrualInterestIncome_055710b9-165a-459b-8d36-92d50f4eb44a" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_FinancingReceivableExcludingAccruedInterestNonaccrualPastDue_e0d08d70-2449-4bd7-98e1-6c75f3d03143" xlink:href="shbi-20241231.xsd#shbi_FinancingReceivableExcludingAccruedInterestNonaccrualPastDue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableNonaccrualStatusLineItems_64d7ea3b-ef47-46d9-a115-3fb15a2ff091" xlink:to="loc_shbi_FinancingReceivableExcludingAccruedInterestNonaccrualPastDue_e0d08d70-2449-4bd7-98e1-6c75f3d03143" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_FinancingReceivableExcludingAccruedInterestNonaccrualCurrent_109bf9a7-c12a-4feb-b43f-fc340ca25603" xlink:href="shbi-20241231.xsd#shbi_FinancingReceivableExcludingAccruedInterestNonaccrualCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableNonaccrualStatusLineItems_64d7ea3b-ef47-46d9-a115-3fb15a2ff091" xlink:to="loc_shbi_FinancingReceivableExcludingAccruedInterestNonaccrualCurrent_109bf9a7-c12a-4feb-b43f-fc340ca25603" xlink:type="arc" order="7"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.shbi.com/role/LoansandAllowanceforCreditLossesLoanRiskRatingsDetails" xlink:type="simple" xlink:href="shbi-20241231.xsd#LoansandAllowanceforCreditLossesLoanRiskRatingsDetails"/>
  <link:definitionLink xlink:role="http://www.shbi.com/role/LoansandAllowanceforCreditLossesLoanRiskRatingsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_2e4f3a0c-fcad-4c5d-b47c-6436175d8aa3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_025d9fe7-92f3-4bbc-8ee7-49ca38d60a1d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_2e4f3a0c-fcad-4c5d-b47c-6436175d8aa3" xlink:to="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_025d9fe7-92f3-4bbc-8ee7-49ca38d60a1d" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_c8529c47-9e26-4ddd-b5e2-f10a11ea1aa7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivablePortfolioSegmentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_025d9fe7-92f3-4bbc-8ee7-49ca38d60a1d" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_c8529c47-9e26-4ddd-b5e2-f10a11ea1aa7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_c8529c47-9e26-4ddd-b5e2-f10a11ea1aa7_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_c8529c47-9e26-4ddd-b5e2-f10a11ea1aa7" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_c8529c47-9e26-4ddd-b5e2-f10a11ea1aa7_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_ce56a3a7-62ef-4369-9786-b999170a1b4b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_c8529c47-9e26-4ddd-b5e2-f10a11ea1aa7" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_ce56a3a7-62ef-4369-9786-b999170a1b4b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommercialRealEstatePortfolioSegmentMember_1d4a3000-25f5-4b0d-8daa-9daffaf7fb53" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommercialRealEstatePortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_ce56a3a7-62ef-4369-9786-b999170a1b4b" xlink:to="loc_us-gaap_CommercialRealEstatePortfolioSegmentMember_1d4a3000-25f5-4b0d-8daa-9daffaf7fb53" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResidentialPortfolioSegmentMember_f54c6152-eeab-48c4-94c3-1244f2361577" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ResidentialPortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_ce56a3a7-62ef-4369-9786-b999170a1b4b" xlink:to="loc_us-gaap_ResidentialPortfolioSegmentMember_f54c6152-eeab-48c4-94c3-1244f2361577" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_ConstructionPortfolioSegmentMember_e72276ba-8d64-4af8-b80c-1d55c057b83f" xlink:href="shbi-20241231.xsd#shbi_ConstructionPortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_ce56a3a7-62ef-4369-9786-b999170a1b4b" xlink:to="loc_shbi_ConstructionPortfolioSegmentMember_e72276ba-8d64-4af8-b80c-1d55c057b83f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommercialPortfolioSegmentMember_bfb015dc-a09d-47e8-ab65-72f3c7bc3b69" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommercialPortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_ce56a3a7-62ef-4369-9786-b999170a1b4b" xlink:to="loc_us-gaap_CommercialPortfolioSegmentMember_bfb015dc-a09d-47e8-ab65-72f3c7bc3b69" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConsumerPortfolioSegmentMember_79517496-24a1-4ac9-9d22-1463bd2a40ba" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ConsumerPortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_ce56a3a7-62ef-4369-9786-b999170a1b4b" xlink:to="loc_us-gaap_ConsumerPortfolioSegmentMember_79517496-24a1-4ac9-9d22-1463bd2a40ba" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_CreditCardPortfolioSegmentMember_f75ccbe7-4001-4063-a1cc-be873a8e4908" xlink:href="shbi-20241231.xsd#shbi_CreditCardPortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_ce56a3a7-62ef-4369-9786-b999170a1b4b" xlink:to="loc_shbi_CreditCardPortfolioSegmentMember_f75ccbe7-4001-4063-a1cc-be873a8e4908" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InternalCreditAssessmentAxis_1d3c5caa-8d79-46b3-a11c-16263c597afa" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InternalCreditAssessmentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_025d9fe7-92f3-4bbc-8ee7-49ca38d60a1d" xlink:to="loc_us-gaap_InternalCreditAssessmentAxis_1d3c5caa-8d79-46b3-a11c-16263c597afa" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InternalCreditAssessmentDomain_1d3c5caa-8d79-46b3-a11c-16263c597afa_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InternalCreditAssessmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_InternalCreditAssessmentAxis_1d3c5caa-8d79-46b3-a11c-16263c597afa" xlink:to="loc_us-gaap_InternalCreditAssessmentDomain_1d3c5caa-8d79-46b3-a11c-16263c597afa_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InternalCreditAssessmentDomain_b2ad831a-1632-4656-9214-c8ddea699bf3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InternalCreditAssessmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_InternalCreditAssessmentAxis_1d3c5caa-8d79-46b3-a11c-16263c597afa" xlink:to="loc_us-gaap_InternalCreditAssessmentDomain_b2ad831a-1632-4656-9214-c8ddea699bf3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InternalNoninvestmentGradeMember_4c1cd2bf-e2ef-42da-9e13-ed54fea74526" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InternalNoninvestmentGradeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InternalCreditAssessmentDomain_b2ad831a-1632-4656-9214-c8ddea699bf3" xlink:to="loc_us-gaap_InternalNoninvestmentGradeMember_4c1cd2bf-e2ef-42da-9e13-ed54fea74526" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PassMember_da6a7d3b-77d4-4d84-b0e7-340a6c771038" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PassMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InternalNoninvestmentGradeMember_4c1cd2bf-e2ef-42da-9e13-ed54fea74526" xlink:to="loc_us-gaap_PassMember_da6a7d3b-77d4-4d84-b0e7-340a6c771038" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SpecialMentionMember_a970c221-ebda-4972-93c0-4bd4d58e3152" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SpecialMentionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InternalNoninvestmentGradeMember_4c1cd2bf-e2ef-42da-9e13-ed54fea74526" xlink:to="loc_us-gaap_SpecialMentionMember_a970c221-ebda-4972-93c0-4bd4d58e3152" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubstandardMember_37228de1-649c-4ebb-97a8-cf060c8bd90f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SubstandardMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InternalNoninvestmentGradeMember_4c1cd2bf-e2ef-42da-9e13-ed54fea74526" xlink:to="loc_us-gaap_SubstandardMember_37228de1-649c-4ebb-97a8-cf060c8bd90f" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentPerformanceStatusAxis_08c97888-1918-4b88-9f80-3243f1c7c378" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancialInstrumentPerformanceStatusAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_025d9fe7-92f3-4bbc-8ee7-49ca38d60a1d" xlink:to="loc_us-gaap_FinancialInstrumentPerformanceStatusAxis_08c97888-1918-4b88-9f80-3243f1c7c378" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentPerformanceStatusDomain_08c97888-1918-4b88-9f80-3243f1c7c378_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancialInstrumentPerformanceStatusDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentPerformanceStatusAxis_08c97888-1918-4b88-9f80-3243f1c7c378" xlink:to="loc_us-gaap_FinancialInstrumentPerformanceStatusDomain_08c97888-1918-4b88-9f80-3243f1c7c378_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentPerformanceStatusDomain_410d4dc7-c3c9-4b7a-822d-82a632124a50" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancialInstrumentPerformanceStatusDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentPerformanceStatusAxis_08c97888-1918-4b88-9f80-3243f1c7c378" xlink:to="loc_us-gaap_FinancialInstrumentPerformanceStatusDomain_410d4dc7-c3c9-4b7a-822d-82a632124a50" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PerformingFinancingReceivableMember_2d5b8ed3-65a7-4c45-89a6-50d0f10c2984" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PerformingFinancingReceivableMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancialInstrumentPerformanceStatusDomain_410d4dc7-c3c9-4b7a-822d-82a632124a50" xlink:to="loc_us-gaap_PerformingFinancingReceivableMember_2d5b8ed3-65a7-4c45-89a6-50d0f10c2984" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonperformingFinancingReceivableMember_e88f2c37-2000-4d9d-965d-1748b831c03c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NonperformingFinancingReceivableMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancialInstrumentPerformanceStatusDomain_410d4dc7-c3c9-4b7a-822d-82a632124a50" xlink:to="loc_us-gaap_NonperformingFinancingReceivableMember_e88f2c37-2000-4d9d-965d-1748b831c03c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_LoansEvaluatedByPerformingStatusMember_e1102854-b042-4a00-9352-1b0339fcc727" xlink:href="shbi-20241231.xsd#shbi_LoansEvaluatedByPerformingStatusMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancialInstrumentPerformanceStatusDomain_410d4dc7-c3c9-4b7a-822d-82a632124a50" xlink:to="loc_shbi_LoansEvaluatedByPerformingStatusMember_e1102854-b042-4a00-9352-1b0339fcc727" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLossByOriginationYearAbstract_7f6c93aa-8e81-4b54-99dd-75e714bf3b13" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLossByOriginationYearAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_2e4f3a0c-fcad-4c5d-b47c-6436175d8aa3" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLossByOriginationYearAbstract_7f6c93aa-8e81-4b54-99dd-75e714bf3b13" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYear_5076a6c0-6dba-472f-8ce3-e1c2f8ca7f50" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYear"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLossByOriginationYearAbstract_7f6c93aa-8e81-4b54-99dd-75e714bf3b13" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYear_5076a6c0-6dba-472f-8ce3-e1c2f8ca7f50" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYear_29e751c4-24c9-4552-9e93-a1c8d6fddd07" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYear"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLossByOriginationYearAbstract_7f6c93aa-8e81-4b54-99dd-75e714bf3b13" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYear_29e751c4-24c9-4552-9e93-a1c8d6fddd07" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYear_d1ea70d9-d035-498f-a5cf-f7c3205b54ff" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYear"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLossByOriginationYearAbstract_7f6c93aa-8e81-4b54-99dd-75e714bf3b13" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYear_d1ea70d9-d035-498f-a5cf-f7c3205b54ff" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYear_84c6886c-99e0-41b9-9396-8eed7ba09698" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYear"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLossByOriginationYearAbstract_7f6c93aa-8e81-4b54-99dd-75e714bf3b13" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYear_84c6886c-99e0-41b9-9396-8eed7ba09698" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYear_baa91cba-d5ca-4016-972c-a9a262946121" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYear"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLossByOriginationYearAbstract_7f6c93aa-8e81-4b54-99dd-75e714bf3b13" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYear_baa91cba-d5ca-4016-972c-a9a262946121" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYear_b9f6537a-53b6-4444-8446-95f57700e6a7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYear"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLossByOriginationYearAbstract_7f6c93aa-8e81-4b54-99dd-75e714bf3b13" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYear_b9f6537a-53b6-4444-8446-95f57700e6a7" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestRevolving_df4355f8-fd6b-48ce-a6da-75d4af3d2442" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestRevolving"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLossByOriginationYearAbstract_7f6c93aa-8e81-4b54-99dd-75e714bf3b13" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestRevolving_df4355f8-fd6b-48ce-a6da-75d4af3d2442" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestRevolvingConvertedToTermLoan_cf5785a9-b215-491d-9df5-954469237b47" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestRevolvingConvertedToTermLoan"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLossByOriginationYearAbstract_7f6c93aa-8e81-4b54-99dd-75e714bf3b13" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestRevolvingConvertedToTermLoan_cf5785a9-b215-491d-9df5-954469237b47" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_38cc8dd1-ac34-4bfb-9d32-893f86c21577" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLossByOriginationYearAbstract_7f6c93aa-8e81-4b54-99dd-75e714bf3b13" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_38cc8dd1-ac34-4bfb-9d32-893f86c21577" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoffByOriginationYearAbstract_7b05e935-df2c-45df-aed7-ce3f2b8fb140" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoffByOriginationYearAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_2e4f3a0c-fcad-4c5d-b47c-6436175d8aa3" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoffByOriginationYearAbstract_7b05e935-df2c-45df-aed7-ce3f2b8fb140" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteoff_0dd08baf-50a2-4b40-be7d-bff106c62fb3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteoff"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoffByOriginationYearAbstract_7b05e935-df2c-45df-aed7-ce3f2b8fb140" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteoff_0dd08baf-50a2-4b40-be7d-bff106c62fb3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteoff_97a73e5e-b003-43e3-8b96-5837fc61b682" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteoff"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoffByOriginationYearAbstract_7b05e935-df2c-45df-aed7-ce3f2b8fb140" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteoff_97a73e5e-b003-43e3-8b96-5837fc61b682" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteoff_f7801e0d-b7a3-4127-9046-d4c98f064f33" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteoff"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoffByOriginationYearAbstract_7b05e935-df2c-45df-aed7-ce3f2b8fb140" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteoff_f7801e0d-b7a3-4127-9046-d4c98f064f33" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearWriteoff_5350ef5a-aeb3-4fe6-b33c-bc5abce0ed71" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearWriteoff"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoffByOriginationYearAbstract_7b05e935-df2c-45df-aed7-ce3f2b8fb140" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearWriteoff_5350ef5a-aeb3-4fe6-b33c-bc5abce0ed71" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteoff_da71b790-94af-4fcf-a9e3-6c041ec03b59" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteoff"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoffByOriginationYearAbstract_7b05e935-df2c-45df-aed7-ce3f2b8fb140" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteoff_da71b790-94af-4fcf-a9e3-6c041ec03b59" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYearWriteoff_4d18b9c8-5875-4b49-9dba-745f6861048e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYearWriteoff"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoffByOriginationYearAbstract_7b05e935-df2c-45df-aed7-ce3f2b8fb140" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYearWriteoff_4d18b9c8-5875-4b49-9dba-745f6861048e" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestRevolvingWriteoff_6eadd4ef-e581-4ae0-9939-491313eaa98a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestRevolvingWriteoff"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoffByOriginationYearAbstract_7b05e935-df2c-45df-aed7-ce3f2b8fb140" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestRevolvingWriteoff_6eadd4ef-e581-4ae0-9939-491313eaa98a" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestRevolvingConvertedToTermLoanWriteoff_eb582aad-d57f-4563-97fc-e7fdb73025f6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestRevolvingConvertedToTermLoanWriteoff"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoffByOriginationYearAbstract_7b05e935-df2c-45df-aed7-ce3f2b8fb140" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestRevolvingConvertedToTermLoanWriteoff_eb582aad-d57f-4563-97fc-e7fdb73025f6" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff_ea27dadc-5929-4c7d-89b2-43d36c2283fd" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoffByOriginationYearAbstract_7b05e935-df2c-45df-aed7-ce3f2b8fb140" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff_ea27dadc-5929-4c7d-89b2-43d36c2283fd" xlink:type="arc" order="9"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.shbi.com/role/LoansandAllowanceforCreditLossesAgingofPastDueFinancingReceivablesDetails" xlink:type="simple" xlink:href="shbi-20241231.xsd#LoansandAllowanceforCreditLossesAgingofPastDueFinancingReceivablesDetails"/>
  <link:definitionLink xlink:role="http://www.shbi.com/role/LoansandAllowanceforCreditLossesAgingofPastDueFinancingReceivablesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDueLineItems_af38a824-e1c9-425d-a4d4-ccdbb03b08b1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableRecordedInvestmentPastDueLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfFinancingReceivablesPastDueTable_7fdc504d-ee67-4004-8519-d566cc8e5654" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfFinancingReceivablesPastDueTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDueLineItems_af38a824-e1c9-425d-a4d4-ccdbb03b08b1" xlink:to="loc_us-gaap_ScheduleOfFinancingReceivablesPastDueTable_7fdc504d-ee67-4004-8519-d566cc8e5654" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_7b1bef57-25c8-4095-8ce8-d32fefef40f6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivablePortfolioSegmentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivablesPastDueTable_7fdc504d-ee67-4004-8519-d566cc8e5654" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_7b1bef57-25c8-4095-8ce8-d32fefef40f6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_7b1bef57-25c8-4095-8ce8-d32fefef40f6_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_7b1bef57-25c8-4095-8ce8-d32fefef40f6" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_7b1bef57-25c8-4095-8ce8-d32fefef40f6_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_37cfddf6-a43a-4188-85a2-36af868a2ebe" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_7b1bef57-25c8-4095-8ce8-d32fefef40f6" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_37cfddf6-a43a-4188-85a2-36af868a2ebe" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommercialRealEstatePortfolioSegmentMember_34b99721-1be0-49eb-bf2c-317cebc1bc61" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommercialRealEstatePortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_37cfddf6-a43a-4188-85a2-36af868a2ebe" xlink:to="loc_us-gaap_CommercialRealEstatePortfolioSegmentMember_34b99721-1be0-49eb-bf2c-317cebc1bc61" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResidentialPortfolioSegmentMember_f4041631-4cce-4586-9f25-30f154d44818" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ResidentialPortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_37cfddf6-a43a-4188-85a2-36af868a2ebe" xlink:to="loc_us-gaap_ResidentialPortfolioSegmentMember_f4041631-4cce-4586-9f25-30f154d44818" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_ConstructionPortfolioSegmentMember_8791a97d-e6f7-49d3-8684-a1675be5cddb" xlink:href="shbi-20241231.xsd#shbi_ConstructionPortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_37cfddf6-a43a-4188-85a2-36af868a2ebe" xlink:to="loc_shbi_ConstructionPortfolioSegmentMember_8791a97d-e6f7-49d3-8684-a1675be5cddb" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommercialPortfolioSegmentMember_725cfa06-438b-44a5-9530-3a1a610681c7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommercialPortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_37cfddf6-a43a-4188-85a2-36af868a2ebe" xlink:to="loc_us-gaap_CommercialPortfolioSegmentMember_725cfa06-438b-44a5-9530-3a1a610681c7" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConsumerPortfolioSegmentMember_4f614ba6-1ad7-49a4-aeda-65cfc85c2102" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ConsumerPortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_37cfddf6-a43a-4188-85a2-36af868a2ebe" xlink:to="loc_us-gaap_ConsumerPortfolioSegmentMember_4f614ba6-1ad7-49a4-aeda-65cfc85c2102" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_CreditCardPortfolioSegmentMember_595c0a9d-851c-4e26-9e81-4cd242c2e6fc" xlink:href="shbi-20241231.xsd#shbi_CreditCardPortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_37cfddf6-a43a-4188-85a2-36af868a2ebe" xlink:to="loc_shbi_CreditCardPortfolioSegmentMember_595c0a9d-851c-4e26-9e81-4cd242c2e6fc" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablesPeriodPastDueAxis_a53f0ab2-b742-488e-96c6-5a10c7d1023e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivablesPeriodPastDueAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivablesPastDueTable_7fdc504d-ee67-4004-8519-d566cc8e5654" xlink:to="loc_us-gaap_FinancingReceivablesPeriodPastDueAxis_a53f0ab2-b742-488e-96c6-5a10c7d1023e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_a53f0ab2-b742-488e-96c6-5a10c7d1023e_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivablesPeriodPastDueDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivablesPeriodPastDueAxis_a53f0ab2-b742-488e-96c6-5a10c7d1023e" xlink:to="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_a53f0ab2-b742-488e-96c6-5a10c7d1023e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_df4e4ba8-051e-4fa0-bd3c-6640c637ac3e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivablesPeriodPastDueDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivablesPeriodPastDueAxis_a53f0ab2-b742-488e-96c6-5a10c7d1023e" xlink:to="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_df4e4ba8-051e-4fa0-bd3c-6640c637ac3e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialAssetNotPastDueMember_c58d4457-1abe-444c-84ce-0d1c35532429" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancialAssetNotPastDueMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_df4e4ba8-051e-4fa0-bd3c-6640c637ac3e" xlink:to="loc_us-gaap_FinancialAssetNotPastDueMember_c58d4457-1abe-444c-84ce-0d1c35532429" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialAssetPastDueMember_7c5eb5a1-fcb3-4f3f-b8e9-c27ad3500c59" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancialAssetPastDueMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_df4e4ba8-051e-4fa0-bd3c-6640c637ac3e" xlink:to="loc_us-gaap_FinancialAssetPastDueMember_7c5eb5a1-fcb3-4f3f-b8e9-c27ad3500c59" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivables30To59DaysPastDueMember_af0b0ffb-a1cd-4d58-898a-82fb8d81b0b9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivables30To59DaysPastDueMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancialAssetPastDueMember_7c5eb5a1-fcb3-4f3f-b8e9-c27ad3500c59" xlink:to="loc_us-gaap_FinancingReceivables30To59DaysPastDueMember_af0b0ffb-a1cd-4d58-898a-82fb8d81b0b9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivables60To89DaysPastDueMember_c851b48e-8dfb-4c4c-a0b3-78019c1d34a0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivables60To89DaysPastDueMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancialAssetPastDueMember_7c5eb5a1-fcb3-4f3f-b8e9-c27ad3500c59" xlink:to="loc_us-gaap_FinancingReceivables60To89DaysPastDueMember_c851b48e-8dfb-4c4c-a0b3-78019c1d34a0" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_FinancialAssetEqualToOrGreaterThan90DaysPastDueStillAccruingMember_cf2347a2-e258-40a7-bac3-3814b69d429d" xlink:href="shbi-20241231.xsd#shbi_FinancialAssetEqualToOrGreaterThan90DaysPastDueStillAccruingMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancialAssetPastDueMember_7c5eb5a1-fcb3-4f3f-b8e9-c27ad3500c59" xlink:to="loc_shbi_FinancialAssetEqualToOrGreaterThan90DaysPastDueStillAccruingMember_cf2347a2-e258-40a7-bac3-3814b69d429d" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_FinancialAsset30To89DaysPastDueMember_a44fd9d2-536d-4cda-aa6b-127f8f7b7422" xlink:href="shbi-20241231.xsd#shbi_FinancialAsset30To89DaysPastDueMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancialAssetPastDueMember_7c5eb5a1-fcb3-4f3f-b8e9-c27ad3500c59" xlink:to="loc_shbi_FinancialAsset30To89DaysPastDueMember_a44fd9d2-536d-4cda-aa6b-127f8f7b7422" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablesEqualToGreaterThan90DaysPastDueMember_e6f060e0-4acb-41c9-81ef-e5c86f15177b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivablesEqualToGreaterThan90DaysPastDueMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancialAssetPastDueMember_7c5eb5a1-fcb3-4f3f-b8e9-c27ad3500c59" xlink:to="loc_us-gaap_FinancingReceivablesEqualToGreaterThan90DaysPastDueMember_e6f060e0-4acb-41c9-81ef-e5c86f15177b" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_532aa81d-a374-4b44-841f-dee6fd7b756c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDueLineItems_af38a824-e1c9-425d-a4d4-ccdbb03b08b1" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_532aa81d-a374-4b44-841f-dee6fd7b756c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestNonaccrual_96259746-ddd4-4c1f-a421-5a8c452dcf7b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestNonaccrual"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDueLineItems_af38a824-e1c9-425d-a4d4-ccdbb03b08b1" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestNonaccrual_96259746-ddd4-4c1f-a421-5a8c452dcf7b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_FinancingReceivableRecordedInvestmentPastDuePercentage_6a7dd286-e103-4e05-a12a-20d890ebffe1" xlink:href="shbi-20241231.xsd#shbi_FinancingReceivableRecordedInvestmentPastDuePercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDueLineItems_af38a824-e1c9-425d-a4d4-ccdbb03b08b1" xlink:to="loc_shbi_FinancingReceivableRecordedInvestmentPastDuePercentage_6a7dd286-e103-4e05-a12a-20d890ebffe1" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_FinancingReceivableRecordedInvestmentAccrualStatusPercentage_e14a667e-0ef7-4292-b8ea-9fdf82d764cd" xlink:href="shbi-20241231.xsd#shbi_FinancingReceivableRecordedInvestmentAccrualStatusPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDueLineItems_af38a824-e1c9-425d-a4d4-ccdbb03b08b1" xlink:to="loc_shbi_FinancingReceivableRecordedInvestmentAccrualStatusPercentage_e14a667e-0ef7-4292-b8ea-9fdf82d764cd" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_FinancingReceivableRecordedInvestmentNonAccrualStatusPercentage_97c88e8c-87b9-402e-bbe0-d5533b39bbc3" xlink:href="shbi-20241231.xsd#shbi_FinancingReceivableRecordedInvestmentNonAccrualStatusPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDueLineItems_af38a824-e1c9-425d-a4d4-ccdbb03b08b1" xlink:to="loc_shbi_FinancingReceivableRecordedInvestmentNonAccrualStatusPercentage_97c88e8c-87b9-402e-bbe0-d5533b39bbc3" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_FinancingReceivableRecordedInvestmentTotalLoansPercentage_c5f158ce-8aaf-4035-88e5-c060eb30e258" xlink:href="shbi-20241231.xsd#shbi_FinancingReceivableRecordedInvestmentTotalLoansPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDueLineItems_af38a824-e1c9-425d-a4d4-ccdbb03b08b1" xlink:to="loc_shbi_FinancingReceivableRecordedInvestmentTotalLoansPercentage_c5f158ce-8aaf-4035-88e5-c060eb30e258" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LoansReceivableFairValueDisclosure_ebda1ef8-c9b7-4f2b-810a-2c11d7b4b3dc" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LoansReceivableFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDueLineItems_af38a824-e1c9-425d-a4d4-ccdbb03b08b1" xlink:to="loc_us-gaap_LoansReceivableFairValueDisclosure_ebda1ef8-c9b7-4f2b-810a-2c11d7b4b3dc" xlink:type="arc" order="6"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.shbi.com/role/LoansandAllowanceforCreditLossesAllowanceforCreditLossesonFinancingReceivablesDetails" xlink:type="simple" xlink:href="shbi-20241231.xsd#LoansandAllowanceforCreditLossesAllowanceforCreditLossesonFinancingReceivablesDetails"/>
  <link:definitionLink xlink:role="http://www.shbi.com/role/LoansandAllowanceforCreditLossesAllowanceforCreditLossesonFinancingReceivablesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_720a3857-5b16-4c12-8bd8-217c033a04ec" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_bec36455-49f3-4c80-be71-0c6b9142d33a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_720a3857-5b16-4c12-8bd8-217c033a04ec" xlink:to="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_bec36455-49f3-4c80-be71-0c6b9142d33a" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_a23fa793-b209-4fa7-952e-e0cf3804016a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivablePortfolioSegmentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_bec36455-49f3-4c80-be71-0c6b9142d33a" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_a23fa793-b209-4fa7-952e-e0cf3804016a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_a23fa793-b209-4fa7-952e-e0cf3804016a_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_a23fa793-b209-4fa7-952e-e0cf3804016a" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_a23fa793-b209-4fa7-952e-e0cf3804016a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_1dfda150-f357-4e79-a7e5-fa274cd28714" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_a23fa793-b209-4fa7-952e-e0cf3804016a" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_1dfda150-f357-4e79-a7e5-fa274cd28714" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommercialRealEstatePortfolioSegmentMember_183c2bfe-37ce-4964-bfa5-fdfc45a5e127" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommercialRealEstatePortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_1dfda150-f357-4e79-a7e5-fa274cd28714" xlink:to="loc_us-gaap_CommercialRealEstatePortfolioSegmentMember_183c2bfe-37ce-4964-bfa5-fdfc45a5e127" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResidentialPortfolioSegmentMember_a283cc19-5939-4dc4-9099-b73d411b5ea0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ResidentialPortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_1dfda150-f357-4e79-a7e5-fa274cd28714" xlink:to="loc_us-gaap_ResidentialPortfolioSegmentMember_a283cc19-5939-4dc4-9099-b73d411b5ea0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_ConstructionPortfolioSegmentMember_acc3544c-a4f7-4957-9984-4a2bf4ec0916" xlink:href="shbi-20241231.xsd#shbi_ConstructionPortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_1dfda150-f357-4e79-a7e5-fa274cd28714" xlink:to="loc_shbi_ConstructionPortfolioSegmentMember_acc3544c-a4f7-4957-9984-4a2bf4ec0916" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommercialPortfolioSegmentMember_aedf77df-01ce-4c62-9f28-b46c2771b856" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommercialPortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_1dfda150-f357-4e79-a7e5-fa274cd28714" xlink:to="loc_us-gaap_CommercialPortfolioSegmentMember_aedf77df-01ce-4c62-9f28-b46c2771b856" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConsumerPortfolioSegmentMember_9ce43f52-5f2e-4e6d-ae1d-e09ebb9d19e5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ConsumerPortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_1dfda150-f357-4e79-a7e5-fa274cd28714" xlink:to="loc_us-gaap_ConsumerPortfolioSegmentMember_9ce43f52-5f2e-4e6d-ae1d-e09ebb9d19e5" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_CreditCardPortfolioSegmentMember_08805486-c441-4cd8-8d25-a3fe759dc3a8" xlink:href="shbi-20241231.xsd#shbi_CreditCardPortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_1dfda150-f357-4e79-a7e5-fa274cd28714" xlink:to="loc_shbi_CreditCardPortfolioSegmentMember_08805486-c441-4cd8-8d25-a3fe759dc3a8" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_89522450-a59e-40eb-94ca-2070270885f6" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_CumulativeEffectPeriodOfAdoptionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_bec36455-49f3-4c80-be71-0c6b9142d33a" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_89522450-a59e-40eb-94ca-2070270885f6" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_89522450-a59e-40eb-94ca-2070270885f6_default" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_CumulativeEffectPeriodOfAdoptionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_89522450-a59e-40eb-94ca-2070270885f6" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_89522450-a59e-40eb-94ca-2070270885f6_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_8057b4ca-ca1d-47ad-8f32-ee609f2984dc" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_CumulativeEffectPeriodOfAdoptionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_89522450-a59e-40eb-94ca-2070270885f6" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_8057b4ca-ca1d-47ad-8f32-ee609f2984dc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionAdjustmentMember_5d086f3f-5e1c-4d2a-bfc5-c403759efbe9" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_CumulativeEffectPeriodOfAdoptionAdjustmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_8057b4ca-ca1d-47ad-8f32-ee609f2984dc" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionAdjustmentMember_5d086f3f-5e1c-4d2a-bfc5-c403759efbe9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_21929bae-1d1a-48fb-9812-371009147e46" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_bec36455-49f3-4c80-be71-0c6b9142d33a" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_21929bae-1d1a-48fb-9812-371009147e46" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_21929bae-1d1a-48fb-9812-371009147e46_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_21929bae-1d1a-48fb-9812-371009147e46" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_21929bae-1d1a-48fb-9812-371009147e46_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_8ab38976-64b3-4bbd-b744-735c9ba87147" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_21929bae-1d1a-48fb-9812-371009147e46" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_8ab38976-64b3-4bbd-b744-735c9ba87147" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_ConsumerLoansDemandDepositOverdraftsMember_6675b675-892c-43ad-8eaa-958e8a16b6ae" xlink:href="shbi-20241231.xsd#shbi_ConsumerLoansDemandDepositOverdraftsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_8ab38976-64b3-4bbd-b744-735c9ba87147" xlink:to="loc_shbi_ConsumerLoansDemandDepositOverdraftsMember_6675b675-892c-43ad-8eaa-958e8a16b6ae" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossRollForward_06547354-25fd-4bfc-9816-73aa74a0163c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_720a3857-5b16-4c12-8bd8-217c033a04ec" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossRollForward_06547354-25fd-4bfc-9816-73aa74a0163c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest_fdf12236-85a6-44f7-a1b6-d13d44f1a5b9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossRollForward_06547354-25fd-4bfc-9816-73aa74a0163c" xlink:to="loc_us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest_fdf12236-85a6-44f7-a1b6-d13d44f1a5b9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossLoanPurchased_540ad7ef-77f6-410d-ace2-a5fa29775d92" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossLoanPurchased"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossRollForward_06547354-25fd-4bfc-9816-73aa74a0163c" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossLoanPurchased_540ad7ef-77f6-410d-ace2-a5fa29775d92" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff_18261ff4-3698-429e-89a6-2502a56a5302" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossRollForward_06547354-25fd-4bfc-9816-73aa74a0163c" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff_18261ff4-3698-429e-89a6-2502a56a5302" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossRecovery_6873f9f9-d4cf-40c0-aa62-5e956eaa6168" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossRecovery"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossRollForward_06547354-25fd-4bfc-9816-73aa74a0163c" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossRecovery_6873f9f9-d4cf-40c0-aa62-5e956eaa6168" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestCreditLossExpenseReversal_f0de6936-acf0-43cb-9e0f-22d09cbbe611" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestCreditLossExpenseReversal"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossRollForward_06547354-25fd-4bfc-9816-73aa74a0163c" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestCreditLossExpenseReversal_f0de6936-acf0-43cb-9e0f-22d09cbbe611" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest_f32b84e8-a177-42ef-bbce-9f5d408d5893" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.shbi.com/role/LoansandAllowanceforCreditLossesScheduleofcollateraldependentloansDetails" xlink:type="simple" xlink:href="shbi-20241231.xsd#LoansandAllowanceforCreditLossesScheduleofcollateraldependentloansDetails"/>
  <link:definitionLink xlink:role="http://www.shbi.com/role/LoansandAllowanceforCreditLossesScheduleofcollateraldependentloansDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_2e089db0-fa5b-425d-9615-5056e8ff2c5f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_34713367-47f5-4877-b8eb-d51c171bf08b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_2e089db0-fa5b-425d-9615-5056e8ff2c5f" xlink:to="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_34713367-47f5-4877-b8eb-d51c171bf08b" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_b13a33e7-b58f-448a-a419-11f36dfdde41" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivablePortfolioSegmentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_34713367-47f5-4877-b8eb-d51c171bf08b" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_b13a33e7-b58f-448a-a419-11f36dfdde41" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_b13a33e7-b58f-448a-a419-11f36dfdde41_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_b13a33e7-b58f-448a-a419-11f36dfdde41" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_b13a33e7-b58f-448a-a419-11f36dfdde41_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_2b0bcc90-fde8-418c-aee8-666efe8131b1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_b13a33e7-b58f-448a-a419-11f36dfdde41" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_2b0bcc90-fde8-418c-aee8-666efe8131b1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommercialRealEstatePortfolioSegmentMember_c25f2db0-c5e7-4db4-a9ec-cafd047bf9f7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommercialRealEstatePortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_2b0bcc90-fde8-418c-aee8-666efe8131b1" xlink:to="loc_us-gaap_CommercialRealEstatePortfolioSegmentMember_c25f2db0-c5e7-4db4-a9ec-cafd047bf9f7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResidentialPortfolioSegmentMember_72041028-9afe-4b56-8e71-1ad1f94207a8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ResidentialPortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_2b0bcc90-fde8-418c-aee8-666efe8131b1" xlink:to="loc_us-gaap_ResidentialPortfolioSegmentMember_72041028-9afe-4b56-8e71-1ad1f94207a8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_ConstructionPortfolioSegmentMember_7b8bd218-51bd-4dcb-b436-4e061ae8da62" xlink:href="shbi-20241231.xsd#shbi_ConstructionPortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_2b0bcc90-fde8-418c-aee8-666efe8131b1" xlink:to="loc_shbi_ConstructionPortfolioSegmentMember_7b8bd218-51bd-4dcb-b436-4e061ae8da62" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommercialPortfolioSegmentMember_93801503-2c41-4644-bdc1-4a883e3c48bb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommercialPortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_2b0bcc90-fde8-418c-aee8-666efe8131b1" xlink:to="loc_us-gaap_CommercialPortfolioSegmentMember_93801503-2c41-4644-bdc1-4a883e3c48bb" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConsumerPortfolioSegmentMember_6f80049b-f325-47f8-ab90-02a25c4df1bd" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ConsumerPortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_2b0bcc90-fde8-418c-aee8-666efe8131b1" xlink:to="loc_us-gaap_ConsumerPortfolioSegmentMember_6f80049b-f325-47f8-ab90-02a25c4df1bd" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CollateralAxis_4b2a2783-3705-471e-b135-f692d3ba58d4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CollateralAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_34713367-47f5-4877-b8eb-d51c171bf08b" xlink:to="loc_us-gaap_CollateralAxis_4b2a2783-3705-471e-b135-f692d3ba58d4" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CollateralDomain_4b2a2783-3705-471e-b135-f692d3ba58d4_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CollateralDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CollateralAxis_4b2a2783-3705-471e-b135-f692d3ba58d4" xlink:to="loc_us-gaap_CollateralDomain_4b2a2783-3705-471e-b135-f692d3ba58d4_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CollateralDomain_e0817d82-41c5-4b7b-9bfb-cb53b7b486f1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CollateralDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CollateralAxis_4b2a2783-3705-471e-b135-f692d3ba58d4" xlink:to="loc_us-gaap_CollateralDomain_e0817d82-41c5-4b7b-9bfb-cb53b7b486f1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RealEstateMember_98d10b0a-72a7-4e2c-9274-1bde63904ddb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RealEstateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CollateralDomain_e0817d82-41c5-4b7b-9bfb-cb53b7b486f1" xlink:to="loc_us-gaap_RealEstateMember_98d10b0a-72a7-4e2c-9274-1bde63904ddb" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_OtherCollateralMember_e7351c86-bbbd-49f1-8d28-2afd5f29da95" xlink:href="shbi-20241231.xsd#shbi_OtherCollateralMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CollateralDomain_e0817d82-41c5-4b7b-9bfb-cb53b7b486f1" xlink:to="loc_shbi_OtherCollateralMember_e7351c86-bbbd-49f1-8d28-2afd5f29da95" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CollateralPledgedMember_634e409f-4f75-4463-abef-c836bb55cf7c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CollateralPledgedMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CollateralDomain_e0817d82-41c5-4b7b-9bfb-cb53b7b486f1" xlink:to="loc_us-gaap_CollateralPledgedMember_634e409f-4f75-4463-abef-c836bb55cf7c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_88736cbf-dc98-4904-87aa-610ba7c76a47" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_2e089db0-fa5b-425d-9615-5056e8ff2c5f" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_88736cbf-dc98-4904-87aa-610ba7c76a47" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.shbi.com/role/GoodwillandOtherIntangibleAssetsScheduleofComponentsofGoodwillandOtherAcquiredIntangibleAssetsDetails" xlink:type="simple" xlink:href="shbi-20241231.xsd#GoodwillandOtherIntangibleAssetsScheduleofComponentsofGoodwillandOtherAcquiredIntangibleAssetsDetails"/>
  <link:definitionLink xlink:role="http://www.shbi.com/role/GoodwillandOtherIntangibleAssetsScheduleofComponentsofGoodwillandOtherAcquiredIntangibleAssetsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_shbi_GoodwillAndIntangibleAssetsLineItems_e972db3c-d402-4fe8-b260-931c32d09c97" xlink:href="shbi-20241231.xsd#shbi_GoodwillAndIntangibleAssetsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_GoodwillAndIntangibleAssetsTable_bdfbecb6-9300-4b50-ba17-ff1081dab5ff" xlink:href="shbi-20241231.xsd#shbi_GoodwillAndIntangibleAssetsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_shbi_GoodwillAndIntangibleAssetsLineItems_e972db3c-d402-4fe8-b260-931c32d09c97" xlink:to="loc_shbi_GoodwillAndIntangibleAssetsTable_bdfbecb6-9300-4b50-ba17-ff1081dab5ff" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_f388b63e-39ab-4b96-ba41-3e3c86b343bc" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_shbi_GoodwillAndIntangibleAssetsTable_bdfbecb6-9300-4b50-ba17-ff1081dab5ff" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_f388b63e-39ab-4b96-ba41-3e3c86b343bc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_f388b63e-39ab-4b96-ba41-3e3c86b343bc_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_f388b63e-39ab-4b96-ba41-3e3c86b343bc" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_f388b63e-39ab-4b96-ba41-3e3c86b343bc_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_92350dfc-5544-4297-a812-5a499d5cb14c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_f388b63e-39ab-4b96-ba41-3e3c86b343bc" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_92350dfc-5544-4297-a812-5a499d5cb14c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CoreDepositsMember_85b55f8a-bcf7-4e55-a676-afd6839f612b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CoreDepositsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_92350dfc-5544-4297-a812-5a499d5cb14c" xlink:to="loc_us-gaap_CoreDepositsMember_85b55f8a-bcf7-4e55-a676-afd6839f612b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsGross_7c79225e-fb74-4c7f-9443-50289befe860" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FiniteLivedIntangibleAssetsGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_shbi_GoodwillAndIntangibleAssetsLineItems_e972db3c-d402-4fe8-b260-931c32d09c97" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsGross_7c79225e-fb74-4c7f-9443-50289befe860" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinitelivedIntangibleAssetsAcquired1_9d0b0cb3-1f89-4e3f-9dd5-034747cb3fbc" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinitelivedIntangibleAssetsAcquired1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_shbi_GoodwillAndIntangibleAssetsLineItems_e972db3c-d402-4fe8-b260-931c32d09c97" xlink:to="loc_us-gaap_FinitelivedIntangibleAssetsAcquired1_9d0b0cb3-1f89-4e3f-9dd5-034747cb3fbc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ImpairmentOfIntangibleAssetsFinitelived_94a6e50e-0829-4e95-a79f-223ec1e76b4f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ImpairmentOfIntangibleAssetsFinitelived"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_shbi_GoodwillAndIntangibleAssetsLineItems_e972db3c-d402-4fe8-b260-931c32d09c97" xlink:to="loc_us-gaap_ImpairmentOfIntangibleAssetsFinitelived_94a6e50e-0829-4e95-a79f-223ec1e76b4f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_f78d3c76-08d9-44c0-a1a9-266fdd5ff9fa" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_shbi_GoodwillAndIntangibleAssetsLineItems_e972db3c-d402-4fe8-b260-931c32d09c97" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_f78d3c76-08d9-44c0-a1a9-266fdd5ff9fa" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_caf80698-1228-4f5d-a7f2-7c489ebf9892" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FiniteLivedIntangibleAssetsNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_shbi_GoodwillAndIntangibleAssetsLineItems_e972db3c-d402-4fe8-b260-931c32d09c97" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsNet_caf80698-1228-4f5d-a7f2-7c489ebf9892" xlink:type="arc" order="4"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.shbi.com/role/GoodwillandOtherIntangibleAssetsNarrativeDetails" xlink:type="simple" xlink:href="shbi-20241231.xsd#GoodwillandOtherIntangibleAssetsNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.shbi.com/role/GoodwillandOtherIntangibleAssetsNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_shbi_GoodwillAndIntangibleAssetsLineItems_e35876f3-bfd1-405a-9fab-e0ccf193111d" xlink:href="shbi-20241231.xsd#shbi_GoodwillAndIntangibleAssetsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_GoodwillAndIntangibleAssetsTable_402a7f23-41ae-4298-a106-23b394cabf63" xlink:href="shbi-20241231.xsd#shbi_GoodwillAndIntangibleAssetsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_shbi_GoodwillAndIntangibleAssetsLineItems_e35876f3-bfd1-405a-9fab-e0ccf193111d" xlink:to="loc_shbi_GoodwillAndIntangibleAssetsTable_402a7f23-41ae-4298-a106-23b394cabf63" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_c5acfc20-ac80-47ca-89aa-c53c6465aa39" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_shbi_GoodwillAndIntangibleAssetsTable_402a7f23-41ae-4298-a106-23b394cabf63" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_c5acfc20-ac80-47ca-89aa-c53c6465aa39" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_c5acfc20-ac80-47ca-89aa-c53c6465aa39_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_c5acfc20-ac80-47ca-89aa-c53c6465aa39" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_c5acfc20-ac80-47ca-89aa-c53c6465aa39_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_6c0cfa6b-0e36-40dd-96e6-3f570dbda8b2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_c5acfc20-ac80-47ca-89aa-c53c6465aa39" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_6c0cfa6b-0e36-40dd-96e6-3f570dbda8b2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CoreDepositsMember_ba93a843-f323-4224-b725-a9d29150e25b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CoreDepositsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_6c0cfa6b-0e36-40dd-96e6-3f570dbda8b2" xlink:to="loc_us-gaap_CoreDepositsMember_ba93a843-f323-4224-b725-a9d29150e25b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfIntangibleAssets_c749e2a7-d052-4917-898b-3aa04e03e6ad" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AmortizationOfIntangibleAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_shbi_GoodwillAndIntangibleAssetsLineItems_e35876f3-bfd1-405a-9fab-e0ccf193111d" xlink:to="loc_us-gaap_AmortizationOfIntangibleAssets_c749e2a7-d052-4917-898b-3aa04e03e6ad" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.shbi.com/role/LeasesLeaseInformationDetails" xlink:type="simple" xlink:href="shbi-20241231.xsd#LeasesLeaseInformationDetails"/>
  <link:definitionLink xlink:role="http://www.shbi.com/role/LeasesLeaseInformationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeLeaseDescriptionLineItems_6cba6ae5-82ad-48b2-b167-635efcc8cda7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LesseeLeaseDescriptionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeLeaseDescriptionTable_eb1c414c-3fbc-4515-8494-3db0eaba8500" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LesseeLeaseDescriptionTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_6cba6ae5-82ad-48b2-b167-635efcc8cda7" xlink:to="loc_us-gaap_LesseeLeaseDescriptionTable_eb1c414c-3fbc-4515-8494-3db0eaba8500" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_3f96c004-d598-492e-8e91-1b40c62198b9" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LesseeLeaseDescriptionTable_eb1c414c-3fbc-4515-8494-3db0eaba8500" xlink:to="loc_srt_RangeAxis_3f96c004-d598-492e-8e91-1b40c62198b9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_3f96c004-d598-492e-8e91-1b40c62198b9_default" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_3f96c004-d598-492e-8e91-1b40c62198b9" xlink:to="loc_srt_RangeMember_3f96c004-d598-492e-8e91-1b40c62198b9_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_0eee251a-76a3-49f3-8654-1c6a34b7cb81" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_3f96c004-d598-492e-8e91-1b40c62198b9" xlink:to="loc_srt_RangeMember_0eee251a-76a3-49f3-8654-1c6a34b7cb81" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_efea0783-6809-4bd7-a0ac-46aff66146a9" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_0eee251a-76a3-49f3-8654-1c6a34b7cb81" xlink:to="loc_srt_MinimumMember_efea0783-6809-4bd7-a0ac-46aff66146a9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_41efbeed-6b20-4dcf-bbd0-d4d47ea23ced" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_0eee251a-76a3-49f3-8654-1c6a34b7cb81" xlink:to="loc_srt_MaximumMember_41efbeed-6b20-4dcf-bbd0-d4d47ea23ced" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiability_81e5ebf8-2720-4ce6-bfa8-d1d625b7d0dd" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OperatingLeaseLiability"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_6cba6ae5-82ad-48b2-b167-635efcc8cda7" xlink:to="loc_us-gaap_OperatingLeaseLiability_81e5ebf8-2720-4ce6-bfa8-d1d625b7d0dd" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_1a9b9116-ff84-4d0f-936f-1caecd94cad2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OperatingLeaseRightOfUseAsset"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_6cba6ae5-82ad-48b2-b167-635efcc8cda7" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_1a9b9116-ff84-4d0f-936f-1caecd94cad2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseWeightedAverageRemainingLeaseTerm1_49fe240e-0938-4aa5-bd80-d79ad8f0934b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OperatingLeaseWeightedAverageRemainingLeaseTerm1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_6cba6ae5-82ad-48b2-b167-635efcc8cda7" xlink:to="loc_us-gaap_OperatingLeaseWeightedAverageRemainingLeaseTerm1_49fe240e-0938-4aa5-bd80-d79ad8f0934b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseWeightedAverageDiscountRatePercent_abcb8d17-05be-43d8-8d94-a1599fa00883" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OperatingLeaseWeightedAverageDiscountRatePercent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_6cba6ae5-82ad-48b2-b167-635efcc8cda7" xlink:to="loc_us-gaap_OperatingLeaseWeightedAverageDiscountRatePercent_abcb8d17-05be-43d8-8d94-a1599fa00883" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseRemainingLeaseTerm_0689d55f-cf88-4ce8-ae0e-3c297abe7d87" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LesseeOperatingLeaseRemainingLeaseTerm"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_6cba6ae5-82ad-48b2-b167-635efcc8cda7" xlink:to="loc_us-gaap_LesseeOperatingLeaseRemainingLeaseTerm_0689d55f-cf88-4ce8-ae0e-3c297abe7d87" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_OperatingLeaseIncomeComprehensiveIncomeExtensibleListNotDisclosedFlag_dea49b55-6b11-406e-87d1-176780be1926" xlink:href="shbi-20241231.xsd#shbi_OperatingLeaseIncomeComprehensiveIncomeExtensibleListNotDisclosedFlag"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_6cba6ae5-82ad-48b2-b167-635efcc8cda7" xlink:to="loc_shbi_OperatingLeaseIncomeComprehensiveIncomeExtensibleListNotDisclosedFlag_dea49b55-6b11-406e-87d1-176780be1926" xlink:type="arc" order="5"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.shbi.com/role/PremisesandEquipmentScheduleofPropertyPlantandEquipmentDetails" xlink:type="simple" xlink:href="shbi-20241231.xsd#PremisesandEquipmentScheduleofPropertyPlantandEquipmentDetails"/>
  <link:definitionLink xlink:role="http://www.shbi.com/role/PremisesandEquipmentScheduleofPropertyPlantandEquipmentDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentLineItems_e694fe65-c142-481a-9767-d83b25bb2cef" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PropertyPlantAndEquipmentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_b1be4b28-68db-45c4-9763-251451c4f3b3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfPropertyPlantAndEquipmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_e694fe65-c142-481a-9767-d83b25bb2cef" xlink:to="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_b1be4b28-68db-45c4-9763-251451c4f3b3" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_9df3820f-9050-49b4-815e-d76418f3f280" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PropertyPlantAndEquipmentByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_b1be4b28-68db-45c4-9763-251451c4f3b3" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_9df3820f-9050-49b4-815e-d76418f3f280" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_9df3820f-9050-49b4-815e-d76418f3f280_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_9df3820f-9050-49b4-815e-d76418f3f280" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_9df3820f-9050-49b4-815e-d76418f3f280_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_9817e7cd-f0c2-4ceb-b744-a9d8be6a3494" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_9df3820f-9050-49b4-815e-d76418f3f280" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_9817e7cd-f0c2-4ceb-b744-a9d8be6a3494" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LandMember_a6d0dace-cf8b-4454-81e7-237df761c6c4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LandMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_9817e7cd-f0c2-4ceb-b744-a9d8be6a3494" xlink:to="loc_us-gaap_LandMember_a6d0dace-cf8b-4454-81e7-237df761c6c4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LandBuildingsAndImprovementsMember_e5c3f094-a2ca-4f44-9393-75d97f1be1b9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LandBuildingsAndImprovementsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_9817e7cd-f0c2-4ceb-b744-a9d8be6a3494" xlink:to="loc_us-gaap_LandBuildingsAndImprovementsMember_e5c3f094-a2ca-4f44-9393-75d97f1be1b9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FurnitureAndFixturesMember_be95f961-eaa2-4bcf-9938-b65b1e2f52ab" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FurnitureAndFixturesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_9817e7cd-f0c2-4ceb-b744-a9d8be6a3494" xlink:to="loc_us-gaap_FurnitureAndFixturesMember_be95f961-eaa2-4bcf-9938-b65b1e2f52ab" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentGross_8e6a0b67-ecc0-4248-863b-0dcffcfb002a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PropertyPlantAndEquipmentGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_e694fe65-c142-481a-9767-d83b25bb2cef" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_8e6a0b67-ecc0-4248-863b-0dcffcfb002a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_1f598b8f-9f41-45e1-81b7-80c2249f2fdd" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_e694fe65-c142-481a-9767-d83b25bb2cef" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_1f598b8f-9f41-45e1-81b7-80c2249f2fdd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_27597e6b-ad84-4f61-aacd-dad85833a668" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_e694fe65-c142-481a-9767-d83b25bb2cef" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_27597e6b-ad84-4f61-aacd-dad85833a668" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.shbi.com/role/BorrowingsScheduleofShorttermBorrowingsDetails" xlink:type="simple" xlink:href="shbi-20241231.xsd#BorrowingsScheduleofShorttermBorrowingsDetails"/>
  <link:definitionLink xlink:role="http://www.shbi.com/role/BorrowingsScheduleofShorttermBorrowingsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShortTermDebtLineItems_5dc9131a-8ac4-4621-96d3-9cc3ccae2ef3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShortTermDebtLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShortTermDebtTable_7f054d42-6002-4056-a3ad-9e82c5cf0b1a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfShortTermDebtTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShortTermDebtLineItems_5dc9131a-8ac4-4621-96d3-9cc3ccae2ef3" xlink:to="loc_us-gaap_ScheduleOfShortTermDebtTable_7f054d42-6002-4056-a3ad-9e82c5cf0b1a" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_46ece45f-0fbc-4c06-bdab-6164ef996d13" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShortTermDebtTable_7f054d42-6002-4056-a3ad-9e82c5cf0b1a" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_46ece45f-0fbc-4c06-bdab-6164ef996d13" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_46ece45f-0fbc-4c06-bdab-6164ef996d13_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_46ece45f-0fbc-4c06-bdab-6164ef996d13" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_46ece45f-0fbc-4c06-bdab-6164ef996d13_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_c1291768-5557-488e-be60-adfe6dc077fd" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_46ece45f-0fbc-4c06-bdab-6164ef996d13" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_c1291768-5557-488e-be60-adfe6dc077fd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_FederalHomeLoanBankAdvanceVariableMember_78b02b02-4fe2-4250-a27b-5f9717d77cc1" xlink:href="shbi-20241231.xsd#shbi_FederalHomeLoanBankAdvanceVariableMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_c1291768-5557-488e-be60-adfe6dc077fd" xlink:to="loc_shbi_FederalHomeLoanBankAdvanceVariableMember_78b02b02-4fe2-4250-a27b-5f9717d77cc1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_FederalHomeLoanBankAdvanceFixedMember_af33d720-6238-4e0c-b3c9-8b276f6b7426" xlink:href="shbi-20241231.xsd#shbi_FederalHomeLoanBankAdvanceFixedMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_c1291768-5557-488e-be60-adfe6dc077fd" xlink:to="loc_shbi_FederalHomeLoanBankAdvanceFixedMember_af33d720-6238-4e0c-b3c9-8b276f6b7426" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAverageAmountOutstanding_518537e0-cbec-4b04-a0c0-35a1cbe2eff9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongTermDebtAverageAmountOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShortTermDebtLineItems_5dc9131a-8ac4-4621-96d3-9cc3ccae2ef3" xlink:to="loc_us-gaap_LongTermDebtAverageAmountOutstanding_518537e0-cbec-4b04-a0c0-35a1cbe2eff9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvancesWeightedAverageInterestRate_f0a96f94-ed0f-4b2e-9de8-106fa7b08a75" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FederalHomeLoanBankAdvancesWeightedAverageInterestRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShortTermDebtLineItems_5dc9131a-8ac4-4621-96d3-9cc3ccae2ef3" xlink:to="loc_us-gaap_FederalHomeLoanBankAdvancesWeightedAverageInterestRate_f0a96f94-ed0f-4b2e-9de8-106fa7b08a75" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentCarryingAmount_54de22d5-56b0-4961-bc9a-ecb89e201474" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentCarryingAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShortTermDebtLineItems_5dc9131a-8ac4-4621-96d3-9cc3ccae2ef3" xlink:to="loc_us-gaap_DebtInstrumentCarryingAmount_54de22d5-56b0-4961-bc9a-ecb89e201474" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvancesInterestRate_3ddf6304-4b53-430a-a96a-0c8bed9d437e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FederalHomeLoanBankAdvancesInterestRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShortTermDebtLineItems_5dc9131a-8ac4-4621-96d3-9cc3ccae2ef3" xlink:to="loc_us-gaap_FederalHomeLoanBankAdvancesInterestRate_3ddf6304-4b53-430a-a96a-0c8bed9d437e" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.shbi.com/role/BorrowingsNarrativeDetails" xlink:type="simple" xlink:href="shbi-20241231.xsd#BorrowingsNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.shbi.com/role/BorrowingsNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShortTermDebtLineItems_a50056fe-95d5-461d-ad63-0732cb4e658b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShortTermDebtLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShortTermDebtTable_9e4cc3f2-80b4-4a71-9ad7-5981a9506e9d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfShortTermDebtTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShortTermDebtLineItems_a50056fe-95d5-461d-ad63-0732cb4e658b" xlink:to="loc_us-gaap_ScheduleOfShortTermDebtTable_9e4cc3f2-80b4-4a71-9ad7-5981a9506e9d" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_bc60a99c-8f68-41e4-93a9-37f758b0aeec" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShortTermDebtTable_9e4cc3f2-80b4-4a71-9ad7-5981a9506e9d" xlink:to="loc_us-gaap_DebtInstrumentAxis_bc60a99c-8f68-41e4-93a9-37f758b0aeec" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_bc60a99c-8f68-41e4-93a9-37f758b0aeec_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_bc60a99c-8f68-41e4-93a9-37f758b0aeec" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_bc60a99c-8f68-41e4-93a9-37f758b0aeec_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_3bf1c3ae-6fd7-4372-971c-dc656f61df9a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_bc60a99c-8f68-41e4-93a9-37f758b0aeec" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_3bf1c3ae-6fd7-4372-971c-dc656f61df9a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_FederalFundsLineOfCreditAndReverseRepurchaseAgreementMember_45f04d56-8f66-4a00-86c7-e2a31067aadc" xlink:href="shbi-20241231.xsd#shbi_FederalFundsLineOfCreditAndReverseRepurchaseAgreementMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_3bf1c3ae-6fd7-4372-971c-dc656f61df9a" xlink:to="loc_shbi_FederalFundsLineOfCreditAndReverseRepurchaseAgreementMember_45f04d56-8f66-4a00-86c7-e2a31067aadc" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_September2030SubordinatedDebentureMember_6bbd2f86-79d3-4a0e-a9f8-805b9c1fc17d" xlink:href="shbi-20241231.xsd#shbi_September2030SubordinatedDebentureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_3bf1c3ae-6fd7-4372-971c-dc656f61df9a" xlink:to="loc_shbi_September2030SubordinatedDebentureMember_6bbd2f86-79d3-4a0e-a9f8-805b9c1fc17d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_October2030SubordinatedDebenturesMember_c3eba5ab-589d-4526-b24f-b29ac92e6d49" xlink:href="shbi-20241231.xsd#shbi_October2030SubordinatedDebenturesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_3bf1c3ae-6fd7-4372-971c-dc656f61df9a" xlink:to="loc_shbi_October2030SubordinatedDebenturesMember_c3eba5ab-589d-4526-b24f-b29ac92e6d49" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_TrustPreferredSecuritiesSevenCapitalTrustIMember_26e021be-96f0-4a3e-b0be-47b34d900857" xlink:href="shbi-20241231.xsd#shbi_TrustPreferredSecuritiesSevenCapitalTrustIMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_3bf1c3ae-6fd7-4372-971c-dc656f61df9a" xlink:to="loc_shbi_TrustPreferredSecuritiesSevenCapitalTrustIMember_26e021be-96f0-4a3e-b0be-47b34d900857" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_TrustPreferredSecuritiesTriCountyCapitalTrustIMember_fe290fcb-e4e0-49c9-a2dd-813284689d71" xlink:href="shbi-20241231.xsd#shbi_TrustPreferredSecuritiesTriCountyCapitalTrustIMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_3bf1c3ae-6fd7-4372-971c-dc656f61df9a" xlink:to="loc_shbi_TrustPreferredSecuritiesTriCountyCapitalTrustIMember_fe290fcb-e4e0-49c9-a2dd-813284689d71" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_TrustPreferredSecuritiesTriCountyCapitalTrustIIMember_f902f4d3-81e1-4fe2-b8b3-8fbf956a6e60" xlink:href="shbi-20241231.xsd#shbi_TrustPreferredSecuritiesTriCountyCapitalTrustIIMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_3bf1c3ae-6fd7-4372-971c-dc656f61df9a" xlink:to="loc_shbi_TrustPreferredSecuritiesTriCountyCapitalTrustIIMember_f902f4d3-81e1-4fe2-b8b3-8fbf956a6e60" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShortTermDebtTypeAxis_553f0eda-f0bf-49e2-8bb1-547eb080d0d1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShortTermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShortTermDebtTable_9e4cc3f2-80b4-4a71-9ad7-5981a9506e9d" xlink:to="loc_us-gaap_ShortTermDebtTypeAxis_553f0eda-f0bf-49e2-8bb1-547eb080d0d1" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShortTermDebtTypeDomain_553f0eda-f0bf-49e2-8bb1-547eb080d0d1_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShortTermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ShortTermDebtTypeAxis_553f0eda-f0bf-49e2-8bb1-547eb080d0d1" xlink:to="loc_us-gaap_ShortTermDebtTypeDomain_553f0eda-f0bf-49e2-8bb1-547eb080d0d1_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShortTermDebtTypeDomain_1efcb03e-33b2-4423-9dca-d77807419649" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShortTermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ShortTermDebtTypeAxis_553f0eda-f0bf-49e2-8bb1-547eb080d0d1" xlink:to="loc_us-gaap_ShortTermDebtTypeDomain_1efcb03e-33b2-4423-9dca-d77807419649" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditMember_48c5ae38-332c-40a4-b871-03742e894dbb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LineOfCreditMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShortTermDebtTypeDomain_1efcb03e-33b2-4423-9dca-d77807419649" xlink:to="loc_us-gaap_LineOfCreditMember_48c5ae38-332c-40a4-b871-03742e894dbb" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_fc1c97e1-61d6-408c-a9d1-2fa7c90ece48" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShortTermDebtTable_9e4cc3f2-80b4-4a71-9ad7-5981a9506e9d" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_fc1c97e1-61d6-408c-a9d1-2fa7c90ece48" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_fc1c97e1-61d6-408c-a9d1-2fa7c90ece48_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_fc1c97e1-61d6-408c-a9d1-2fa7c90ece48" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_fc1c97e1-61d6-408c-a9d1-2fa7c90ece48_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_e2a1c160-2a17-412f-92ed-e8bfc75ccdec" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_fc1c97e1-61d6-408c-a9d1-2fa7c90ece48" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_e2a1c160-2a17-412f-92ed-e8bfc75ccdec" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubordinatedDebtMember_85cc9104-92b6-4d4d-b4c5-892ee731957f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SubordinatedDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_e2a1c160-2a17-412f-92ed-e8bfc75ccdec" xlink:to="loc_us-gaap_SubordinatedDebtMember_85cc9104-92b6-4d4d-b4c5-892ee731957f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_TrustPreferredSecuritiesMember_e1602d0e-6129-4486-b498-60632b9df048" xlink:href="shbi-20241231.xsd#shbi_TrustPreferredSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_e2a1c160-2a17-412f-92ed-e8bfc75ccdec" xlink:to="loc_shbi_TrustPreferredSecuritiesMember_e1602d0e-6129-4486-b498-60632b9df048" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_15a20458-bc81-4b97-890e-7ad858687688" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BusinessAcquisitionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShortTermDebtTable_9e4cc3f2-80b4-4a71-9ad7-5981a9506e9d" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_15a20458-bc81-4b97-890e-7ad858687688" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_15a20458-bc81-4b97-890e-7ad858687688_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_15a20458-bc81-4b97-890e-7ad858687688" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_15a20458-bc81-4b97-890e-7ad858687688_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_a1b14441-4855-4df2-af19-ccb7bfdbbe29" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_15a20458-bc81-4b97-890e-7ad858687688" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_a1b14441-4855-4df2-af19-ccb7bfdbbe29" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_SevernBancorpInc.Member_6fe9786c-1324-401c-a992-7eb1fba5b675" xlink:href="shbi-20241231.xsd#shbi_SevernBancorpInc.Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_a1b14441-4855-4df2-af19-ccb7bfdbbe29" xlink:to="loc_shbi_SevernBancorpInc.Member_6fe9786c-1324-401c-a992-7eb1fba5b675" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityAxis_149e1d36-1a92-47dd-8a7f-b0b618681f9e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CreditFacilityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShortTermDebtTable_9e4cc3f2-80b4-4a71-9ad7-5981a9506e9d" xlink:to="loc_us-gaap_CreditFacilityAxis_149e1d36-1a92-47dd-8a7f-b0b618681f9e" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_149e1d36-1a92-47dd-8a7f-b0b618681f9e_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_149e1d36-1a92-47dd-8a7f-b0b618681f9e" xlink:to="loc_us-gaap_CreditFacilityDomain_149e1d36-1a92-47dd-8a7f-b0b618681f9e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_369f0215-19fe-424c-87bb-23abaf7dfcb0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_149e1d36-1a92-47dd-8a7f-b0b618681f9e" xlink:to="loc_us-gaap_CreditFacilityDomain_369f0215-19fe-424c-87bb-23abaf7dfcb0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditMember_59bdebe9-b839-430c-9451-41674be25ae3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LineOfCreditMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_369f0215-19fe-424c-87bb-23abaf7dfcb0" xlink:to="loc_us-gaap_LineOfCreditMember_59bdebe9-b839-430c-9451-41674be25ae3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShortTermBorrowings_f7dddbc5-180e-464f-a519-6dfff316898c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShortTermBorrowings"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShortTermDebtLineItems_a50056fe-95d5-461d-ad63-0732cb4e658b" xlink:to="loc_us-gaap_ShortTermBorrowings_f7dddbc5-180e-464f-a519-6dfff316898c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity_901a1892-3def-4c4a-9254-3c104dfa2231" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShortTermDebtLineItems_a50056fe-95d5-461d-ad63-0732cb4e658b" xlink:to="loc_us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity_901a1892-3def-4c4a-9254-3c104dfa2231" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LettersOfCreditOutstandingAmount_bcf75ae9-cee4-4f65-b150-f9cd56ed771b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LettersOfCreditOutstandingAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShortTermDebtLineItems_a50056fe-95d5-461d-ad63-0732cb4e658b" xlink:to="loc_us-gaap_LettersOfCreditOutstandingAmount_bcf75ae9-cee4-4f65-b150-f9cd56ed771b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentCarryingAmount_b2f0824f-32a8-4711-9e8c-5eb29bbb320e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentCarryingAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShortTermDebtLineItems_a50056fe-95d5-461d-ad63-0732cb4e658b" xlink:to="loc_us-gaap_DebtInstrumentCarryingAmount_b2f0824f-32a8-4711-9e8c-5eb29bbb320e" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_9cfc6fc6-cd5d-45e2-92a5-78b9b16ef39f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongTermDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShortTermDebtLineItems_a50056fe-95d5-461d-ad63-0732cb4e658b" xlink:to="loc_us-gaap_LongTermDebt_9cfc6fc6-cd5d-45e2-92a5-78b9b16ef39f" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_UnamortizedFairValueAdjustment_9ad8f7e8-73b5-470b-ab27-fb1adc3876b2" xlink:href="shbi-20241231.xsd#shbi_UnamortizedFairValueAdjustment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShortTermDebtLineItems_a50056fe-95d5-461d-ad63-0732cb4e658b" xlink:to="loc_shbi_UnamortizedFairValueAdjustment_9ad8f7e8-73b5-470b-ab27-fb1adc3876b2" xlink:type="arc" order="5"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.shbi.com/role/BorrowingsScheduleofLongTermDebtDetails" xlink:type="simple" xlink:href="shbi-20241231.xsd#BorrowingsScheduleofLongTermDebtDetails"/>
  <link:definitionLink xlink:role="http://www.shbi.com/role/BorrowingsScheduleofLongTermDebtDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_d074ddd1-d000-4f1a-b99f-ce702dd6c704" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_8d9d686e-373b-472e-9277-25afbcd19b61" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_d074ddd1-d000-4f1a-b99f-ce702dd6c704" xlink:to="loc_us-gaap_DebtInstrumentTable_8d9d686e-373b-472e-9277-25afbcd19b61" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_2bfdecc8-0206-4ad9-b14e-662188557374" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_8d9d686e-373b-472e-9277-25afbcd19b61" xlink:to="loc_us-gaap_DebtInstrumentAxis_2bfdecc8-0206-4ad9-b14e-662188557374" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_2bfdecc8-0206-4ad9-b14e-662188557374_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_2bfdecc8-0206-4ad9-b14e-662188557374" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_2bfdecc8-0206-4ad9-b14e-662188557374_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_406426bf-e584-40f6-a520-50e9908a3e73" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_2bfdecc8-0206-4ad9-b14e-662188557374" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_406426bf-e584-40f6-a520-50e9908a3e73" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_September2030SubordinatedDebentureMember_5cc73e05-444b-40a0-892a-00af4b790862" xlink:href="shbi-20241231.xsd#shbi_September2030SubordinatedDebentureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_406426bf-e584-40f6-a520-50e9908a3e73" xlink:to="loc_shbi_September2030SubordinatedDebentureMember_5cc73e05-444b-40a0-892a-00af4b790862" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_October2030SubordinatedDebenturesMember_4cc5d507-4423-4377-9759-d228576e3a68" xlink:href="shbi-20241231.xsd#shbi_October2030SubordinatedDebenturesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_406426bf-e584-40f6-a520-50e9908a3e73" xlink:to="loc_shbi_October2030SubordinatedDebenturesMember_4cc5d507-4423-4377-9759-d228576e3a68" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_TrustPreferredSecuritiesSevenCapitalTrustIMember_4704d0da-2d20-4872-a77a-9a58dce66f69" xlink:href="shbi-20241231.xsd#shbi_TrustPreferredSecuritiesSevenCapitalTrustIMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_406426bf-e584-40f6-a520-50e9908a3e73" xlink:to="loc_shbi_TrustPreferredSecuritiesSevenCapitalTrustIMember_4704d0da-2d20-4872-a77a-9a58dce66f69" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_TrustPreferredSecuritiesTriCountyCapitalTrustIMember_800b2d26-fd25-4500-b6b8-a7a396e18315" xlink:href="shbi-20241231.xsd#shbi_TrustPreferredSecuritiesTriCountyCapitalTrustIMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_406426bf-e584-40f6-a520-50e9908a3e73" xlink:to="loc_shbi_TrustPreferredSecuritiesTriCountyCapitalTrustIMember_800b2d26-fd25-4500-b6b8-a7a396e18315" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_TrustPreferredSecuritiesTriCountyCapitalTrustIIMember_250eda20-13e0-4411-be34-e5a9d90d1cc3" xlink:href="shbi-20241231.xsd#shbi_TrustPreferredSecuritiesTriCountyCapitalTrustIIMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_406426bf-e584-40f6-a520-50e9908a3e73" xlink:to="loc_shbi_TrustPreferredSecuritiesTriCountyCapitalTrustIIMember_250eda20-13e0-4411-be34-e5a9d90d1cc3" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_bbe74ae4-d99f-478e-b71a-228dd8bca3b5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_8d9d686e-373b-472e-9277-25afbcd19b61" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_bbe74ae4-d99f-478e-b71a-228dd8bca3b5" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_bbe74ae4-d99f-478e-b71a-228dd8bca3b5_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_bbe74ae4-d99f-478e-b71a-228dd8bca3b5" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_bbe74ae4-d99f-478e-b71a-228dd8bca3b5_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_3fcec6be-0912-4a0d-858e-32e90c1153df" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_bbe74ae4-d99f-478e-b71a-228dd8bca3b5" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_3fcec6be-0912-4a0d-858e-32e90c1153df" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubordinatedDebtMember_6b7179af-2c40-4c98-aeef-6e67053b33af" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SubordinatedDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_3fcec6be-0912-4a0d-858e-32e90c1153df" xlink:to="loc_us-gaap_SubordinatedDebtMember_6b7179af-2c40-4c98-aeef-6e67053b33af" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_TrustPreferredSecuritiesMember_011020a6-be32-444a-ab18-a61ce1e27b9c" xlink:href="shbi-20241231.xsd#shbi_TrustPreferredSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_3fcec6be-0912-4a0d-858e-32e90c1153df" xlink:to="loc_shbi_TrustPreferredSecuritiesMember_011020a6-be32-444a-ab18-a61ce1e27b9c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentCarryingAmount_1455637f-bd6e-406c-ad66-cc3ebd2cc468" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentCarryingAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_d074ddd1-d000-4f1a-b99f-ce702dd6c704" xlink:to="loc_us-gaap_DebtInstrumentCarryingAmount_1455637f-bd6e-406c-ad66-cc3ebd2cc468" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_b743aacd-2aab-4de0-81c5-8bcb7136afdb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_d074ddd1-d000-4f1a-b99f-ce702dd6c704" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_b743aacd-2aab-4de0-81c5-8bcb7136afdb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_a19b2ae8-2ab6-4faf-b108-4cff4524ae21" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentBasisSpreadOnVariableRate1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_d074ddd1-d000-4f1a-b99f-ce702dd6c704" xlink:to="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_a19b2ae8-2ab6-4faf-b108-4cff4524ae21" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet_c6b7aa7a-b0f2-4e9b-a27b-21de81a9cb4f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_d074ddd1-d000-4f1a-b99f-ce702dd6c704" xlink:to="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet_c6b7aa7a-b0f2-4e9b-a27b-21de81a9cb4f" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_ec70a92f-3a81-457d-acb6-498b6254282d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongTermDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_d074ddd1-d000-4f1a-b99f-ce702dd6c704" xlink:to="loc_us-gaap_LongTermDebt_ec70a92f-3a81-457d-acb6-498b6254282d" xlink:type="arc" order="4"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.shbi.com/role/BenefitPlansNarrativeDetails" xlink:type="simple" xlink:href="shbi-20241231.xsd#BenefitPlansNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.shbi.com/role/BenefitPlansNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedContributionPlanDisclosureLineItems_3aade6c3-eea2-4294-9e33-1c1252eeaff8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DefinedContributionPlanDisclosureLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedContributionPlanTable_12ac6dc0-ae58-4678-994d-6abd80c45efb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DefinedContributionPlanTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DefinedContributionPlanDisclosureLineItems_3aade6c3-eea2-4294-9e33-1c1252eeaff8" xlink:to="loc_us-gaap_DefinedContributionPlanTable_12ac6dc0-ae58-4678-994d-6abd80c45efb" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_DefinedContributionPlanEmployerMatchingContributionThresholdAxis_4432a7ee-eeee-471a-b046-0a688c740f77" xlink:href="shbi-20241231.xsd#shbi_DefinedContributionPlanEmployerMatchingContributionThresholdAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DefinedContributionPlanTable_12ac6dc0-ae58-4678-994d-6abd80c45efb" xlink:to="loc_shbi_DefinedContributionPlanEmployerMatchingContributionThresholdAxis_4432a7ee-eeee-471a-b046-0a688c740f77" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_DefinedContributionPlanEmployerMatchingContributionThresholdDomain_4432a7ee-eeee-471a-b046-0a688c740f77_default" xlink:href="shbi-20241231.xsd#shbi_DefinedContributionPlanEmployerMatchingContributionThresholdDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_shbi_DefinedContributionPlanEmployerMatchingContributionThresholdAxis_4432a7ee-eeee-471a-b046-0a688c740f77" xlink:to="loc_shbi_DefinedContributionPlanEmployerMatchingContributionThresholdDomain_4432a7ee-eeee-471a-b046-0a688c740f77_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_DefinedContributionPlanEmployerMatchingContributionThresholdDomain_6cb025ae-9b3b-41f9-95ea-27e008fd13b5" xlink:href="shbi-20241231.xsd#shbi_DefinedContributionPlanEmployerMatchingContributionThresholdDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_shbi_DefinedContributionPlanEmployerMatchingContributionThresholdAxis_4432a7ee-eeee-471a-b046-0a688c740f77" xlink:to="loc_shbi_DefinedContributionPlanEmployerMatchingContributionThresholdDomain_6cb025ae-9b3b-41f9-95ea-27e008fd13b5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_DefinedContributionPlanEmployerMatchingContributionThresholdOneMember_b18c94e6-4b73-40ab-8df9-347b401743aa" xlink:href="shbi-20241231.xsd#shbi_DefinedContributionPlanEmployerMatchingContributionThresholdOneMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_shbi_DefinedContributionPlanEmployerMatchingContributionThresholdDomain_6cb025ae-9b3b-41f9-95ea-27e008fd13b5" xlink:to="loc_shbi_DefinedContributionPlanEmployerMatchingContributionThresholdOneMember_b18c94e6-4b73-40ab-8df9-347b401743aa" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_DefinedContributionPlanEmployerMatchingContributionThresholdTwoMember_1510a7b4-6c8e-4514-9639-2dd75b0bb72c" xlink:href="shbi-20241231.xsd#shbi_DefinedContributionPlanEmployerMatchingContributionThresholdTwoMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_shbi_DefinedContributionPlanEmployerMatchingContributionThresholdDomain_6cb025ae-9b3b-41f9-95ea-27e008fd13b5" xlink:to="loc_shbi_DefinedContributionPlanEmployerMatchingContributionThresholdTwoMember_1510a7b4-6c8e-4514-9639-2dd75b0bb72c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedContributionPlanEmployerMatchingContributionPercentOfMatch_39504804-561c-47c2-8e29-823c91af5669" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DefinedContributionPlanEmployerMatchingContributionPercentOfMatch"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedContributionPlanDisclosureLineItems_3aade6c3-eea2-4294-9e33-1c1252eeaff8" xlink:to="loc_us-gaap_DefinedContributionPlanEmployerMatchingContributionPercentOfMatch_39504804-561c-47c2-8e29-823c91af5669" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedContributionPlanEmployerMatchingContributionPercent_05a7c5ce-8d2d-4038-a45a-9f9704d7a8a0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DefinedContributionPlanEmployerMatchingContributionPercent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedContributionPlanDisclosureLineItems_3aade6c3-eea2-4294-9e33-1c1252eeaff8" xlink:to="loc_us-gaap_DefinedContributionPlanEmployerMatchingContributionPercent_05a7c5ce-8d2d-4038-a45a-9f9704d7a8a0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedContributionPlanEmployerDiscretionaryContributionAmount_4645b162-a6cd-462a-86f7-3bb3fcf4f003" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DefinedContributionPlanEmployerDiscretionaryContributionAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedContributionPlanDisclosureLineItems_3aade6c3-eea2-4294-9e33-1c1252eeaff8" xlink:to="loc_us-gaap_DefinedContributionPlanEmployerDiscretionaryContributionAmount_4645b162-a6cd-462a-86f7-3bb3fcf4f003" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.shbi.com/role/StockBasedCompensationNarrativeDetails" xlink:type="simple" xlink:href="shbi-20241231.xsd#StockBasedCompensationNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.shbi.com/role/StockBasedCompensationNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_ef4c497d-2e09-4125-95c2-824fe6576f37" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_ec1c57e8-672e-4346-bd6e-3392a888ca81" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_ef4c497d-2e09-4125-95c2-824fe6576f37" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_ec1c57e8-672e-4346-bd6e-3392a888ca81" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_0d7b97d1-fa35-4c2e-9010-187a0bba8b0f" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_ec1c57e8-672e-4346-bd6e-3392a888ca81" xlink:to="loc_srt_RangeAxis_0d7b97d1-fa35-4c2e-9010-187a0bba8b0f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_0d7b97d1-fa35-4c2e-9010-187a0bba8b0f_default" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_0d7b97d1-fa35-4c2e-9010-187a0bba8b0f" xlink:to="loc_srt_RangeMember_0d7b97d1-fa35-4c2e-9010-187a0bba8b0f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_f69917d3-79ac-4ac6-aa5a-093c38c6704b" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_0d7b97d1-fa35-4c2e-9010-187a0bba8b0f" xlink:to="loc_srt_RangeMember_f69917d3-79ac-4ac6-aa5a-093c38c6704b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_b5c76f0a-9449-4155-ba1b-b7256c2f31a3" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_f69917d3-79ac-4ac6-aa5a-093c38c6704b" xlink:to="loc_srt_MinimumMember_b5c76f0a-9449-4155-ba1b-b7256c2f31a3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_45b3cdc5-22fc-4255-8e01-894b5a5cc552" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_f69917d3-79ac-4ac6-aa5a-093c38c6704b" xlink:to="loc_srt_MaximumMember_45b3cdc5-22fc-4255-8e01-894b5a5cc552" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameAxis_291bab38-f47a-4632-9a38-5a080989f63b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PlanNameAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_ec1c57e8-672e-4346-bd6e-3392a888ca81" xlink:to="loc_us-gaap_PlanNameAxis_291bab38-f47a-4632-9a38-5a080989f63b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameDomain_291bab38-f47a-4632-9a38-5a080989f63b_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PlanNameAxis_291bab38-f47a-4632-9a38-5a080989f63b" xlink:to="loc_us-gaap_PlanNameDomain_291bab38-f47a-4632-9a38-5a080989f63b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameDomain_a1778631-c70e-49c3-bc92-f672ec61f677" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PlanNameAxis_291bab38-f47a-4632-9a38-5a080989f63b" xlink:to="loc_us-gaap_PlanNameDomain_a1778631-c70e-49c3-bc92-f672ec61f677" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_TwoThousandAndSixteenPlanMember_d503175f-4157-4892-9d78-a752904d408c" xlink:href="shbi-20241231.xsd#shbi_TwoThousandAndSixteenPlanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanNameDomain_a1778631-c70e-49c3-bc92-f672ec61f677" xlink:to="loc_shbi_TwoThousandAndSixteenPlanMember_d503175f-4157-4892-9d78-a752904d408c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_b5ee7bf6-8fd7-4a09-badb-06722be17b94" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_ec1c57e8-672e-4346-bd6e-3392a888ca81" xlink:to="loc_us-gaap_AwardTypeAxis_b5ee7bf6-8fd7-4a09-badb-06722be17b94" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_b5ee7bf6-8fd7-4a09-badb-06722be17b94_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_b5ee7bf6-8fd7-4a09-badb-06722be17b94" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_b5ee7bf6-8fd7-4a09-badb-06722be17b94_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_114f745d-378f-4e25-9a8e-3ae75f16c4d1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_b5ee7bf6-8fd7-4a09-badb-06722be17b94" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_114f745d-378f-4e25-9a8e-3ae75f16c4d1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_TimeBasedRestrictedStockAwardsMember_a13d7e0f-cf16-47b3-926c-5841bfe62d5a" xlink:href="shbi-20241231.xsd#shbi_TimeBasedRestrictedStockAwardsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_114f745d-378f-4e25-9a8e-3ae75f16c4d1" xlink:to="loc_shbi_TimeBasedRestrictedStockAwardsMember_a13d7e0f-cf16-47b3-926c-5841bfe62d5a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeStockOptionMember_e1e04e6b-2001-45bd-9ae4-63bf6c43baf5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EmployeeStockOptionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_114f745d-378f-4e25-9a8e-3ae75f16c4d1" xlink:to="loc_us-gaap_EmployeeStockOptionMember_e1e04e6b-2001-45bd-9ae4-63bf6c43baf5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedStockMember_ad85bddf-fdf4-432f-9822-ae6286ad1af8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RestrictedStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_114f745d-378f-4e25-9a8e-3ae75f16c4d1" xlink:to="loc_us-gaap_RestrictedStockMember_ad85bddf-fdf4-432f-9822-ae6286ad1af8" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedStockUnitsRSUMember_eae06b18-7747-4d78-a18d-4d3e56107a68" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RestrictedStockUnitsRSUMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_114f745d-378f-4e25-9a8e-3ae75f16c4d1" xlink:to="loc_us-gaap_RestrictedStockUnitsRSUMember_eae06b18-7747-4d78-a18d-4d3e56107a68" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1_7ea06908-9071-41c5-b5e5-10cff67eb9a6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_ef4c497d-2e09-4125-95c2-824fe6576f37" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1_7ea06908-9071-41c5-b5e5-10cff67eb9a6" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardExpirationPeriod_1bc9ba28-9830-4a18-9637-0ee441e5a4e3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardExpirationPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_ef4c497d-2e09-4125-95c2-824fe6576f37" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardExpirationPeriod_1bc9ba28-9830-4a18-9637-0ee441e5a4e3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_ShareBasedCompensationArrangementByShareBasedPaymentAwardPerformanceCyclePeriod_564d5285-77d7-4913-8320-9cdef224396f" xlink:href="shbi-20241231.xsd#shbi_ShareBasedCompensationArrangementByShareBasedPaymentAwardPerformanceCyclePeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_ef4c497d-2e09-4125-95c2-824fe6576f37" xlink:to="loc_shbi_ShareBasedCompensationArrangementByShareBasedPaymentAwardPerformanceCyclePeriod_564d5285-77d7-4913-8320-9cdef224396f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized_f5af40dc-0162-43ea-bd30-2ac31a7282e4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_ef4c497d-2e09-4125-95c2-824fe6576f37" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized_f5af40dc-0162-43ea-bd30-2ac31a7282e4" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant_f5ea0cc4-e503-4dd3-9368-ff2c27ef2ae2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_ef4c497d-2e09-4125-95c2-824fe6576f37" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant_f5ea0cc4-e503-4dd3-9368-ff2c27ef2ae2" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsTransferred_4fe09541-5ee3-4f58-9465-b0d5d62e6475" xlink:href="shbi-20241231.xsd#shbi_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsTransferred"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_ef4c497d-2e09-4125-95c2-824fe6576f37" xlink:to="loc_shbi_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsTransferred_4fe09541-5ee3-4f58-9465-b0d5d62e6475" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsTransferredWeightedAverageGrantDateFairValue_f867702f-d111-4f6b-8e3d-f8334b26170d" xlink:href="shbi-20241231.xsd#shbi_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsTransferredWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_ef4c497d-2e09-4125-95c2-824fe6576f37" xlink:to="loc_shbi_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsTransferredWeightedAverageGrantDateFairValue_f867702f-d111-4f6b-8e3d-f8334b26170d" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodTotalFairValue_a748ea27-39d6-4944-8389-88d38a69b581" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodTotalFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_ef4c497d-2e09-4125-95c2-824fe6576f37" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodTotalFairValue_a748ea27-39d6-4944-8389-88d38a69b581" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriod_5af511ad-31ac-40a2-aec4-065d039b0842" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_ef4c497d-2e09-4125-95c2-824fe6576f37" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriod_5af511ad-31ac-40a2-aec4-065d039b0842" xlink:type="arc" order="8"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.shbi.com/role/StockBasedCompensationScheduleofStockBasedCompensationDetails" xlink:type="simple" xlink:href="shbi-20241231.xsd#StockBasedCompensationScheduleofStockBasedCompensationDetails"/>
  <link:definitionLink xlink:role="http://www.shbi.com/role/StockBasedCompensationScheduleofStockBasedCompensationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_c2ae86f7-24c7-41a1-8e64-4e2051ec262c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_2013df2c-1b89-487f-bd28-4e98eab52f37" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_c2ae86f7-24c7-41a1-8e64-4e2051ec262c" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_2013df2c-1b89-487f-bd28-4e98eab52f37" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_d8126c5f-b910-4eb0-9a18-1cc1105bbfde" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_2013df2c-1b89-487f-bd28-4e98eab52f37" xlink:to="loc_us-gaap_AwardTypeAxis_d8126c5f-b910-4eb0-9a18-1cc1105bbfde" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_d8126c5f-b910-4eb0-9a18-1cc1105bbfde_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_d8126c5f-b910-4eb0-9a18-1cc1105bbfde" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_d8126c5f-b910-4eb0-9a18-1cc1105bbfde_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_036d8063-4d3b-4a0e-9253-afae79c261b5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_d8126c5f-b910-4eb0-9a18-1cc1105bbfde" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_036d8063-4d3b-4a0e-9253-afae79c261b5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedStockMember_5aae42cd-c64c-4534-b26b-634f915979df" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RestrictedStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_036d8063-4d3b-4a0e-9253-afae79c261b5" xlink:to="loc_us-gaap_RestrictedStockMember_5aae42cd-c64c-4534-b26b-634f915979df" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedStockUnitsRSUMember_a5dd5748-1181-4344-97df-b119c3156012" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RestrictedStockUnitsRSUMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_036d8063-4d3b-4a0e-9253-afae79c261b5" xlink:to="loc_us-gaap_RestrictedStockUnitsRSUMember_a5dd5748-1181-4344-97df-b119c3156012" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PerformanceSharesMember_6b635e50-6759-4f3b-bdbd-c4c94902e665" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PerformanceSharesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_036d8063-4d3b-4a0e-9253-afae79c261b5" xlink:to="loc_us-gaap_PerformanceSharesMember_6b635e50-6759-4f3b-bdbd-c4c94902e665" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_4d81914c-42d6-4623-8fd5-6c7334112fd7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AllocatedShareBasedCompensationExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_c2ae86f7-24c7-41a1-8e64-4e2051ec262c" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_4d81914c-42d6-4623-8fd5-6c7334112fd7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized_68811e0d-7876-4505-b948-36ab588781ee" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_c2ae86f7-24c7-41a1-8e64-4e2051ec262c" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized_68811e0d-7876-4505-b948-36ab588781ee" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_31da4489-879a-4207-9e88-c9b7d393c631" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_c2ae86f7-24c7-41a1-8e64-4e2051ec262c" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_31da4489-879a-4207-9e88-c9b7d393c631" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.shbi.com/role/StockBasedCompensationScheduleofStockBasedCompensationRSandRSUAwardActivityDetails" xlink:type="simple" xlink:href="shbi-20241231.xsd#StockBasedCompensationScheduleofStockBasedCompensationRSandRSUAwardActivityDetails"/>
  <link:definitionLink xlink:role="http://www.shbi.com/role/StockBasedCompensationScheduleofStockBasedCompensationRSandRSUAwardActivityDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_bd7803b7-613f-442d-8cf5-3abb06bfd632" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_10c5e618-bc5f-4083-be0c-5ee4c3b017b5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_bd7803b7-613f-442d-8cf5-3abb06bfd632" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_10c5e618-bc5f-4083-be0c-5ee4c3b017b5" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_0e2f2c6d-dd12-4fd3-9c7e-53a4b965964a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_10c5e618-bc5f-4083-be0c-5ee4c3b017b5" xlink:to="loc_us-gaap_AwardTypeAxis_0e2f2c6d-dd12-4fd3-9c7e-53a4b965964a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_0e2f2c6d-dd12-4fd3-9c7e-53a4b965964a_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_0e2f2c6d-dd12-4fd3-9c7e-53a4b965964a" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_0e2f2c6d-dd12-4fd3-9c7e-53a4b965964a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_8ee459bf-ecb7-4864-98e5-14076deab34d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_0e2f2c6d-dd12-4fd3-9c7e-53a4b965964a" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_8ee459bf-ecb7-4864-98e5-14076deab34d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedStockMember_1fb1dcf9-0568-4098-b9f9-bae9f06170c6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RestrictedStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_8ee459bf-ecb7-4864-98e5-14076deab34d" xlink:to="loc_us-gaap_RestrictedStockMember_1fb1dcf9-0568-4098-b9f9-bae9f06170c6" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedStockUnitsRSUMember_cee99bbd-986b-440b-aba6-9ef37147a808" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RestrictedStockUnitsRSUMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_8ee459bf-ecb7-4864-98e5-14076deab34d" xlink:to="loc_us-gaap_RestrictedStockUnitsRSUMember_cee99bbd-986b-440b-aba6-9ef37147a808" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PerformanceSharesMember_1cae3bc5-c357-476e-b1df-20d191a67cd7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PerformanceSharesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_8ee459bf-ecb7-4864-98e5-14076deab34d" xlink:to="loc_us-gaap_PerformanceSharesMember_1cae3bc5-c357-476e-b1df-20d191a67cd7" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameAxis_47b0473a-dfec-4927-bc33-25c7d8477746" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PlanNameAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_10c5e618-bc5f-4083-be0c-5ee4c3b017b5" xlink:to="loc_us-gaap_PlanNameAxis_47b0473a-dfec-4927-bc33-25c7d8477746" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameDomain_47b0473a-dfec-4927-bc33-25c7d8477746_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PlanNameAxis_47b0473a-dfec-4927-bc33-25c7d8477746" xlink:to="loc_us-gaap_PlanNameDomain_47b0473a-dfec-4927-bc33-25c7d8477746_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameDomain_b5c18cba-7cad-4598-ae58-06248622412e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PlanNameAxis_47b0473a-dfec-4927-bc33-25c7d8477746" xlink:to="loc_us-gaap_PlanNameDomain_b5c18cba-7cad-4598-ae58-06248622412e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_TwoThousandAndSixteenPlanMember_b378e717-ae8f-41c8-8f15-479c68befd41" xlink:href="shbi-20241231.xsd#shbi_TwoThousandAndSixteenPlanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanNameDomain_b5c18cba-7cad-4598-ae58-06248622412e" xlink:to="loc_shbi_TwoThousandAndSixteenPlanMember_b378e717-ae8f-41c8-8f15-479c68befd41" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_193c407b-6be3-4192-9af0-b92fe44957cf" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_bd7803b7-613f-442d-8cf5-3abb06bfd632" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_193c407b-6be3-4192-9af0-b92fe44957cf" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_e4b08721-0ef6-43c4-91fc-1fd2953fcedb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_193c407b-6be3-4192-9af0-b92fe44957cf" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_e4b08721-0ef6-43c4-91fc-1fd2953fcedb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_32ea5784-89ad-47f0-a74c-578f35a044a1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_193c407b-6be3-4192-9af0-b92fe44957cf" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_32ea5784-89ad-47f0-a74c-578f35a044a1" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_2ddada0a-72a6-46ad-9c0f-5d810a43f450" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_193c407b-6be3-4192-9af0-b92fe44957cf" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_2ddada0a-72a6-46ad-9c0f-5d810a43f450" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_10697bae-dffd-4848-a05f-64357c635086" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_193c407b-6be3-4192-9af0-b92fe44957cf" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_10697bae-dffd-4848-a05f-64357c635086" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_f6eb952f-7635-42d9-88c0-e363c097fd3d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_8c9b4558-5b36-4fd5-a3bf-eb1547692c17" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_bd7803b7-613f-442d-8cf5-3abb06bfd632" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_8c9b4558-5b36-4fd5-a3bf-eb1547692c17" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_1028cf3c-1609-48f2-a554-212e9a5060b2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_8c9b4558-5b36-4fd5-a3bf-eb1547692c17" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_1028cf3c-1609-48f2-a554-212e9a5060b2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_c1401d02-dff4-4d9b-bf13-7e55208ada9b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_8c9b4558-5b36-4fd5-a3bf-eb1547692c17" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_c1401d02-dff4-4d9b-bf13-7e55208ada9b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue_2ea4e1c4-549d-4602-af28-cf832c80c49e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_8c9b4558-5b36-4fd5-a3bf-eb1547692c17" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue_2ea4e1c4-549d-4602-af28-cf832c80c49e" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue_528d607c-bf6d-4272-972a-a8f7a0e8f2c2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_8c9b4558-5b36-4fd5-a3bf-eb1547692c17" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue_528d607c-bf6d-4272-972a-a8f7a0e8f2c2" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_71505394-7e39-47aa-87e1-ddc42bb4edd5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.shbi.com/role/DerivativesNarrativeDetails" xlink:type="simple" xlink:href="shbi-20241231.xsd#DerivativesNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.shbi.com/role/DerivativesNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativesFairValueLineItems_75cfc84b-a07e-48fe-ad7c-a743eb618063" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativesFairValueLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_91d9b66d-9bdf-4720-95c2-86ea5b58a9ad" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_75cfc84b-a07e-48fe-ad7c-a743eb618063" xlink:to="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_91d9b66d-9bdf-4720-95c2-86ea5b58a9ad" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_08ede30a-d876-4047-8628-92eadfb5b842" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_91d9b66d-9bdf-4720-95c2-86ea5b58a9ad" xlink:to="loc_srt_RangeAxis_08ede30a-d876-4047-8628-92eadfb5b842" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_08ede30a-d876-4047-8628-92eadfb5b842_default" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_08ede30a-d876-4047-8628-92eadfb5b842" xlink:to="loc_srt_RangeMember_08ede30a-d876-4047-8628-92eadfb5b842_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_7ebfdf1f-c819-46f5-a4b2-95f5949a060c" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_08ede30a-d876-4047-8628-92eadfb5b842" xlink:to="loc_srt_RangeMember_7ebfdf1f-c819-46f5-a4b2-95f5949a060c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_9f235ac8-ecce-4e80-b3f4-4fd19aba42b3" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_7ebfdf1f-c819-46f5-a4b2-95f5949a060c" xlink:to="loc_srt_MinimumMember_9f235ac8-ecce-4e80-b3f4-4fd19aba42b3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_f54b01d1-95ce-44d2-a4fb-7943d5a6dc0a" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_7ebfdf1f-c819-46f5-a4b2-95f5949a060c" xlink:to="loc_srt_MaximumMember_f54b01d1-95ce-44d2-a4fb-7943d5a6dc0a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_055ea83f-d0a2-4622-9ab0-77870014a90a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeInstrumentRiskAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_91d9b66d-9bdf-4720-95c2-86ea5b58a9ad" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_055ea83f-d0a2-4622-9ab0-77870014a90a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_055ea83f-d0a2-4622-9ab0-77870014a90a_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_055ea83f-d0a2-4622-9ab0-77870014a90a" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_055ea83f-d0a2-4622-9ab0-77870014a90a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_76da7e67-8a00-484e-b78b-383990c6ad30" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_055ea83f-d0a2-4622-9ab0-77870014a90a" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_76da7e67-8a00-484e-b78b-383990c6ad30" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestRateLockCommitmentsMember_4755ec82-81ee-4142-ad44-a0ef4ec5c9df" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InterestRateLockCommitmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_76da7e67-8a00-484e-b78b-383990c6ad30" xlink:to="loc_us-gaap_InterestRateLockCommitmentsMember_4755ec82-81ee-4142-ad44-a0ef4ec5c9df" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_PeriodBetweenIssuanceOfLoanCommitmentAndClosingAndSaleOfLoan_4b3308fe-52f8-4bda-ad3a-9c3fb0c1ff4c" xlink:href="shbi-20241231.xsd#shbi_PeriodBetweenIssuanceOfLoanCommitmentAndClosingAndSaleOfLoan"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_75cfc84b-a07e-48fe-ad7c-a743eb618063" xlink:to="loc_shbi_PeriodBetweenIssuanceOfLoanCommitmentAndClosingAndSaleOfLoan_4b3308fe-52f8-4bda-ad3a-9c3fb0c1ff4c" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.shbi.com/role/DerivativesCarryingAmountsofDerivativeFinancialInstrumentsDetails" xlink:type="simple" xlink:href="shbi-20241231.xsd#DerivativesCarryingAmountsofDerivativeFinancialInstrumentsDetails"/>
  <link:definitionLink xlink:role="http://www.shbi.com/role/DerivativesCarryingAmountsofDerivativeFinancialInstrumentsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativesFairValueLineItems_84398ab5-e448-4842-9422-2556295d82e2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativesFairValueLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_90cfa12d-5b93-4bac-8f89-b9330e207431" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_84398ab5-e448-4842-9422-2556295d82e2" xlink:to="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_90cfa12d-5b93-4bac-8f89-b9330e207431" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_0661bb5a-526b-42fb-97bb-a6f1949d31ed" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeInstrumentRiskAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_90cfa12d-5b93-4bac-8f89-b9330e207431" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_0661bb5a-526b-42fb-97bb-a6f1949d31ed" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_0661bb5a-526b-42fb-97bb-a6f1949d31ed_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_0661bb5a-526b-42fb-97bb-a6f1949d31ed" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_0661bb5a-526b-42fb-97bb-a6f1949d31ed_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_376cbf5e-465a-43f7-9e6c-44ecba51f0c2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_0661bb5a-526b-42fb-97bb-a6f1949d31ed" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_376cbf5e-465a-43f7-9e6c-44ecba51f0c2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestRateLockCommitmentsMember_d3e5d255-4b2e-4703-ad0c-c17f469062ee" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InterestRateLockCommitmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_376cbf5e-465a-43f7-9e6c-44ecba51f0c2" xlink:to="loc_us-gaap_InterestRateLockCommitmentsMember_d3e5d255-4b2e-4703-ad0c-c17f469062ee" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_ToBeAnnouncedForwardTradesMember_3bead09d-6db3-40cf-8aed-c5a603353cb4" xlink:href="shbi-20241231.xsd#shbi_ToBeAnnouncedForwardTradesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_376cbf5e-465a-43f7-9e6c-44ecba51f0c2" xlink:to="loc_shbi_ToBeAnnouncedForwardTradesMember_3bead09d-6db3-40cf-8aed-c5a603353cb4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssetNotionalAmount_df1e53fd-e2bf-4c6d-8471-fcbbdde9e1ef" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeAssetNotionalAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_84398ab5-e448-4842-9422-2556295d82e2" xlink:to="loc_us-gaap_DerivativeAssetNotionalAmount_df1e53fd-e2bf-4c6d-8471-fcbbdde9e1ef" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_226486ae-8ee9-4ada-a054-37f8a81cd336" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeFairValueOfDerivativeAsset"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_84398ab5-e448-4842-9422-2556295d82e2" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_226486ae-8ee9-4ada-a054-37f8a81cd336" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilityNotionalAmount_18c3d9ef-10ac-4981-8747-bb0dc15041b9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeLiabilityNotionalAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_84398ab5-e448-4842-9422-2556295d82e2" xlink:to="loc_us-gaap_DerivativeLiabilityNotionalAmount_18c3d9ef-10ac-4981-8747-bb0dc15041b9" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssetFairValueGrossLiability_85158b4d-ab0f-41fb-948f-ff4b1697b391" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeAssetFairValueGrossLiability"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_84398ab5-e448-4842-9422-2556295d82e2" xlink:to="loc_us-gaap_DerivativeAssetFairValueGrossLiability_85158b4d-ab0f-41fb-948f-ff4b1697b391" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.shbi.com/role/DeferredCompensationNarrativeDetails" xlink:type="simple" xlink:href="shbi-20241231.xsd#DeferredCompensationNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.shbi.com/role/DeferredCompensationNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredCompensationArrangementWithIndividualShareBasedPaymentsLineItems_42cefe8b-7698-434f-aeaa-49b3f8af298d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredCompensationArrangementWithIndividualShareBasedPaymentsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfDeferredCompensationArrangementWithIndividualShareBasedPaymentsTable_35973356-554c-4759-8448-ac097a78a13d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfDeferredCompensationArrangementWithIndividualShareBasedPaymentsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DeferredCompensationArrangementWithIndividualShareBasedPaymentsLineItems_42cefe8b-7698-434f-aeaa-49b3f8af298d" xlink:to="loc_us-gaap_ScheduleOfDeferredCompensationArrangementWithIndividualShareBasedPaymentsTable_35973356-554c-4759-8448-ac097a78a13d" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_TitleOfIndividualAxis_1aaadab9-8272-4416-867b-770948cb9fe8" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_TitleOfIndividualAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDeferredCompensationArrangementWithIndividualShareBasedPaymentsTable_35973356-554c-4759-8448-ac097a78a13d" xlink:to="loc_srt_TitleOfIndividualAxis_1aaadab9-8272-4416-867b-770948cb9fe8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_TitleOfIndividualWithRelationshipToEntityDomain_1aaadab9-8272-4416-867b-770948cb9fe8_default" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_TitleOfIndividualWithRelationshipToEntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_TitleOfIndividualAxis_1aaadab9-8272-4416-867b-770948cb9fe8" xlink:to="loc_srt_TitleOfIndividualWithRelationshipToEntityDomain_1aaadab9-8272-4416-867b-770948cb9fe8_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_TitleOfIndividualWithRelationshipToEntityDomain_686266bf-c255-443e-9525-75c5e080116b" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_TitleOfIndividualWithRelationshipToEntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_TitleOfIndividualAxis_1aaadab9-8272-4416-867b-770948cb9fe8" xlink:to="loc_srt_TitleOfIndividualWithRelationshipToEntityDomain_686266bf-c255-443e-9525-75c5e080116b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_ManagementAndHighlyCompensatedEmployeesMember_c257577e-5ce1-44e7-abb6-1f8cdb22a38a" xlink:href="shbi-20241231.xsd#shbi_ManagementAndHighlyCompensatedEmployeesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_TitleOfIndividualWithRelationshipToEntityDomain_686266bf-c255-443e-9525-75c5e080116b" xlink:to="loc_shbi_ManagementAndHighlyCompensatedEmployeesMember_c257577e-5ce1-44e7-abb6-1f8cdb22a38a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameAxis_c111a144-08e6-4a88-b022-b4638e09b3f4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PlanNameAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDeferredCompensationArrangementWithIndividualShareBasedPaymentsTable_35973356-554c-4759-8448-ac097a78a13d" xlink:to="loc_us-gaap_PlanNameAxis_c111a144-08e6-4a88-b022-b4638e09b3f4" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameDomain_c111a144-08e6-4a88-b022-b4638e09b3f4_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PlanNameAxis_c111a144-08e6-4a88-b022-b4638e09b3f4" xlink:to="loc_us-gaap_PlanNameDomain_c111a144-08e6-4a88-b022-b4638e09b3f4_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameDomain_5e0d352c-1613-44eb-adcb-60930120b5fa" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PlanNameAxis_c111a144-08e6-4a88-b022-b4638e09b3f4" xlink:to="loc_us-gaap_PlanNameDomain_5e0d352c-1613-44eb-adcb-60930120b5fa" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_ExecutiveDeferredCompensationPlanMember_86cbc966-2aa6-4afb-b56a-f231647f3b8e" xlink:href="shbi-20241231.xsd#shbi_ExecutiveDeferredCompensationPlanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanNameDomain_5e0d352c-1613-44eb-adcb-60930120b5fa" xlink:to="loc_shbi_ExecutiveDeferredCompensationPlanMember_86cbc966-2aa6-4afb-b56a-f231647f3b8e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardMaximumEmployeeSubscriptionRate_b8ed0d40-c453-4c6d-b582-f58d6f5b876a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardMaximumEmployeeSubscriptionRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredCompensationArrangementWithIndividualShareBasedPaymentsLineItems_42cefe8b-7698-434f-aeaa-49b3f8af298d" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardMaximumEmployeeSubscriptionRate_b8ed0d40-c453-4c6d-b582-f58d6f5b876a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1_29c8ddf4-3853-4e02-b053-2754485608f2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredCompensationArrangementWithIndividualShareBasedPaymentsLineItems_42cefe8b-7698-434f-aeaa-49b3f8af298d" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1_29c8ddf4-3853-4e02-b053-2754485608f2" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.shbi.com/role/DeferredCompensationScheduleofDeferredCompensationArrangementinOtherAssetsandOtherLiabilitiesDetails" xlink:type="simple" xlink:href="shbi-20241231.xsd#DeferredCompensationScheduleofDeferredCompensationArrangementinOtherAssetsandOtherLiabilitiesDetails"/>
  <link:definitionLink xlink:role="http://www.shbi.com/role/DeferredCompensationScheduleofDeferredCompensationArrangementinOtherAssetsandOtherLiabilitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredCompensationArrangementWithIndividualShareBasedPaymentsLineItems_3f62c76f-5bce-4b09-a62f-4680bc2d3cb1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredCompensationArrangementWithIndividualShareBasedPaymentsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfDeferredCompensationArrangementWithIndividualShareBasedPaymentsTable_3e1e4941-9ebe-449d-abe8-9c16a81324ad" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfDeferredCompensationArrangementWithIndividualShareBasedPaymentsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DeferredCompensationArrangementWithIndividualShareBasedPaymentsLineItems_3f62c76f-5bce-4b09-a62f-4680bc2d3cb1" xlink:to="loc_us-gaap_ScheduleOfDeferredCompensationArrangementWithIndividualShareBasedPaymentsTable_3e1e4941-9ebe-449d-abe8-9c16a81324ad" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameAxis_400e36ca-cc02-4253-9a74-9c83b93ceaec" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PlanNameAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDeferredCompensationArrangementWithIndividualShareBasedPaymentsTable_3e1e4941-9ebe-449d-abe8-9c16a81324ad" xlink:to="loc_us-gaap_PlanNameAxis_400e36ca-cc02-4253-9a74-9c83b93ceaec" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameDomain_400e36ca-cc02-4253-9a74-9c83b93ceaec_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PlanNameAxis_400e36ca-cc02-4253-9a74-9c83b93ceaec" xlink:to="loc_us-gaap_PlanNameDomain_400e36ca-cc02-4253-9a74-9c83b93ceaec_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameDomain_af5b5dc9-d186-4ba1-bc35-f0e022566819" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PlanNameAxis_400e36ca-cc02-4253-9a74-9c83b93ceaec" xlink:to="loc_us-gaap_PlanNameDomain_af5b5dc9-d186-4ba1-bc35-f0e022566819" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_SerpPlanMember_a4538ca0-f4fb-4f3f-b5ed-d35ce74677e9" xlink:href="shbi-20241231.xsd#shbi_SerpPlanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanNameDomain_af5b5dc9-d186-4ba1-bc35-f0e022566819" xlink:to="loc_shbi_SerpPlanMember_a4538ca0-f4fb-4f3f-b5ed-d35ce74677e9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_TitleOfIndividualAxis_3fbc1533-c06d-4b0c-b166-3388060de71f" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_TitleOfIndividualAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDeferredCompensationArrangementWithIndividualShareBasedPaymentsTable_3e1e4941-9ebe-449d-abe8-9c16a81324ad" xlink:to="loc_srt_TitleOfIndividualAxis_3fbc1533-c06d-4b0c-b166-3388060de71f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_TitleOfIndividualWithRelationshipToEntityDomain_3fbc1533-c06d-4b0c-b166-3388060de71f_default" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_TitleOfIndividualWithRelationshipToEntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_TitleOfIndividualAxis_3fbc1533-c06d-4b0c-b166-3388060de71f" xlink:to="loc_srt_TitleOfIndividualWithRelationshipToEntityDomain_3fbc1533-c06d-4b0c-b166-3388060de71f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_TitleOfIndividualWithRelationshipToEntityDomain_5531624d-3079-4bb5-b48b-b8abedb6d40a" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_TitleOfIndividualWithRelationshipToEntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_TitleOfIndividualAxis_3fbc1533-c06d-4b0c-b166-3388060de71f" xlink:to="loc_srt_TitleOfIndividualWithRelationshipToEntityDomain_5531624d-3079-4bb5-b48b-b8abedb6d40a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_FormerDirectorsFromAcquisitionMember_050c97fc-5749-48a7-a715-245249830c61" xlink:href="shbi-20241231.xsd#shbi_FormerDirectorsFromAcquisitionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_TitleOfIndividualWithRelationshipToEntityDomain_5531624d-3079-4bb5-b48b-b8abedb6d40a" xlink:to="loc_shbi_FormerDirectorsFromAcquisitionMember_050c97fc-5749-48a7-a715-245249830c61" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashSurrenderValueOfLifeInsurance_fe43b130-5e69-43cc-9a5f-0539c1fb3152" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CashSurrenderValueOfLifeInsurance"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredCompensationArrangementWithIndividualShareBasedPaymentsLineItems_3f62c76f-5bce-4b09-a62f-4680bc2d3cb1" xlink:to="loc_us-gaap_CashSurrenderValueOfLifeInsurance_fe43b130-5e69-43cc-9a5f-0539c1fb3152" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredCompensationArrangementWithIndividualRecordedLiability_6920efd8-5d68-4c58-a13e-5e27234988b5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredCompensationArrangementWithIndividualRecordedLiability"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredCompensationArrangementWithIndividualShareBasedPaymentsLineItems_3f62c76f-5bce-4b09-a62f-4680bc2d3cb1" xlink:to="loc_us-gaap_DeferredCompensationArrangementWithIndividualRecordedLiability_6920efd8-5d68-4c58-a13e-5e27234988b5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredCompensationArrangementWithIndividualCompensationExpense_b5341ca0-bd0f-4087-9eea-61ad5277b5d2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredCompensationArrangementWithIndividualCompensationExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredCompensationArrangementWithIndividualShareBasedPaymentsLineItems_3f62c76f-5bce-4b09-a62f-4680bc2d3cb1" xlink:to="loc_us-gaap_DeferredCompensationArrangementWithIndividualCompensationExpense_b5341ca0-bd0f-4087-9eea-61ad5277b5d2" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.shbi.com/role/AccumulatedOtherComprehensiveLossScheduleofAccumulatedOtherComprehensiveIncomeLossDetails" xlink:type="simple" xlink:href="shbi-20241231.xsd#AccumulatedOtherComprehensiveLossScheduleofAccumulatedOtherComprehensiveIncomeLossDetails"/>
  <link:definitionLink xlink:role="http://www.shbi.com/role/AccumulatedOtherComprehensiveLossScheduleofAccumulatedOtherComprehensiveIncomeLossDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems_43f4b55f-c194-47b9-982d-018eb4670a59" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossTable_7fd140b5-7bf0-4896-ae89-1296436a55ea" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems_43f4b55f-c194-47b9-982d-018eb4670a59" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossTable_7fd140b5-7bf0-4896-ae89-1296436a55ea" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_51155ae3-b7f5-40d0-877a-f7ff900c3f65" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementEquityComponentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossTable_7fd140b5-7bf0-4896-ae89-1296436a55ea" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_51155ae3-b7f5-40d0-877a-f7ff900c3f65" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_51155ae3-b7f5-40d0-877a-f7ff900c3f65_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_51155ae3-b7f5-40d0-877a-f7ff900c3f65" xlink:to="loc_us-gaap_EquityComponentDomain_51155ae3-b7f5-40d0-877a-f7ff900c3f65_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_846a7e2e-15ef-406a-ad4c-ce9b260a7d15" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_51155ae3-b7f5-40d0-877a-f7ff900c3f65" xlink:to="loc_us-gaap_EquityComponentDomain_846a7e2e-15ef-406a-ad4c-ce9b260a7d15" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedNetUnrealizedInvestmentGainLossMember_acea53d0-2bcc-41a4-b7fa-d22eb522c2e0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccumulatedNetUnrealizedInvestmentGainLossMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_846a7e2e-15ef-406a-ad4c-ce9b260a7d15" xlink:to="loc_us-gaap_AccumulatedNetUnrealizedInvestmentGainLossMember_acea53d0-2bcc-41a4-b7fa-d22eb522c2e0" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AOCIAttributableToParentNetOfTaxRollForward_0acd7d4d-4ac2-4b0b-8727-d417e238a1c3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AOCIAttributableToParentNetOfTaxRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems_43f4b55f-c194-47b9-982d-018eb4670a59" xlink:to="loc_us-gaap_AOCIAttributableToParentNetOfTaxRollForward_0acd7d4d-4ac2-4b0b-8727-d417e238a1c3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_cc85ae73-f4e4-4af2-ac01-2b5809224afc" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StockholdersEquity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AOCIAttributableToParentNetOfTaxRollForward_0acd7d4d-4ac2-4b0b-8727-d417e238a1c3" xlink:to="loc_us-gaap_StockholdersEquity_cc85ae73-f4e4-4af2-ac01-2b5809224afc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_12fe5e8f-64b9-4303-9af9-c80234093a3f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AOCIAttributableToParentNetOfTaxRollForward_0acd7d4d-4ac2-4b0b-8727-d417e238a1c3" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_12fe5e8f-64b9-4303-9af9-c80234093a3f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_2722bc34-a8eb-4eb6-a91f-cf526448b323" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StockholdersEquity"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.shbi.com/role/RegulatoryCapitalScheduleofActualandRequiredCapitalRatiosDetails" xlink:type="simple" xlink:href="shbi-20241231.xsd#RegulatoryCapitalScheduleofActualandRequiredCapitalRatiosDetails"/>
  <link:definitionLink xlink:role="http://www.shbi.com/role/RegulatoryCapitalScheduleofActualandRequiredCapitalRatiosDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsLineItems_4243bc0d-aecb-4b23-823f-6621a99db51f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsTable_15227333-69fc-46fc-b53b-db296042951a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsLineItems_4243bc0d-aecb-4b23-823f-6621a99db51f" xlink:to="loc_us-gaap_ScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsTable_15227333-69fc-46fc-b53b-db296042951a" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_6e8b55da-905f-42e9-b703-81ebe0d10af0" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsTable_15227333-69fc-46fc-b53b-db296042951a" xlink:to="loc_dei_LegalEntityAxis_6e8b55da-905f-42e9-b703-81ebe0d10af0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_6e8b55da-905f-42e9-b703-81ebe0d10af0_default" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_6e8b55da-905f-42e9-b703-81ebe0d10af0" xlink:to="loc_dei_EntityDomain_6e8b55da-905f-42e9-b703-81ebe0d10af0_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_09f86f1d-92e2-4ee4-9c03-a47eae9b868d" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_6e8b55da-905f-42e9-b703-81ebe0d10af0" xlink:to="loc_dei_EntityDomain_09f86f1d-92e2-4ee4-9c03-a47eae9b868d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_TheBankMember_96b27bb3-947a-45f9-b997-ddfea576b63d" xlink:href="shbi-20241231.xsd#shbi_TheBankMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_09f86f1d-92e2-4ee4-9c03-a47eae9b868d" xlink:to="loc_shbi_TheBankMember_96b27bb3-947a-45f9-b997-ddfea576b63d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonEquityTierOneCapitalAbstract_d60b680c-9569-46a7-a28e-947a6534923f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommonEquityTierOneCapitalAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsLineItems_4243bc0d-aecb-4b23-823f-6621a99db51f" xlink:to="loc_us-gaap_CommonEquityTierOneCapitalAbstract_d60b680c-9569-46a7-a28e-947a6534923f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonEquityTierOneCapital_b5b8e043-5b1c-4c8e-9386-8387118e3d06" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommonEquityTierOneCapital"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CommonEquityTierOneCapitalAbstract_d60b680c-9569-46a7-a28e-947a6534923f" xlink:to="loc_us-gaap_CommonEquityTierOneCapital_b5b8e043-5b1c-4c8e-9386-8387118e3d06" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonEquityTierOneCapitalRatio_27987c60-79bf-4c29-830f-774179704bc8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommonEquityTierOneCapitalRatio"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CommonEquityTierOneCapitalAbstract_d60b680c-9569-46a7-a28e-947a6534923f" xlink:to="loc_us-gaap_CommonEquityTierOneCapitalRatio_27987c60-79bf-4c29-830f-774179704bc8" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TierOneRiskBasedCapital_1531b667-66fd-4dc9-8a0a-a1600c868157" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TierOneRiskBasedCapital"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CommonEquityTierOneCapitalAbstract_d60b680c-9569-46a7-a28e-947a6534923f" xlink:to="loc_us-gaap_TierOneRiskBasedCapital_1531b667-66fd-4dc9-8a0a-a1600c868157" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TierOneRiskBasedCapitalToRiskWeightedAssets_dfcbe567-3063-4755-b95b-2f8bdb4a7205" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TierOneRiskBasedCapitalToRiskWeightedAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CommonEquityTierOneCapitalAbstract_d60b680c-9569-46a7-a28e-947a6534923f" xlink:to="loc_us-gaap_TierOneRiskBasedCapitalToRiskWeightedAssets_dfcbe567-3063-4755-b95b-2f8bdb4a7205" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Capital_a71eb6ae-038c-42fc-93f7-f2d7ec5ff24e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_Capital"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CommonEquityTierOneCapitalAbstract_d60b680c-9569-46a7-a28e-947a6534923f" xlink:to="loc_us-gaap_Capital_a71eb6ae-038c-42fc-93f7-f2d7ec5ff24e" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CapitalToRiskWeightedAssets_e7221845-ea21-4380-8f64-66583baaab54" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CapitalToRiskWeightedAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CommonEquityTierOneCapitalAbstract_d60b680c-9569-46a7-a28e-947a6534923f" xlink:to="loc_us-gaap_CapitalToRiskWeightedAssets_e7221845-ea21-4380-8f64-66583baaab54" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TierOneLeverageCapital_2e76bd20-d8ba-415b-b5d7-901f5b87db96" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TierOneLeverageCapital"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CommonEquityTierOneCapitalAbstract_d60b680c-9569-46a7-a28e-947a6534923f" xlink:to="loc_us-gaap_TierOneLeverageCapital_2e76bd20-d8ba-415b-b5d7-901f5b87db96" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TierOneLeverageCapitalToAverageAssets_ca2f653e-5a13-4fd1-8ad3-850360454ed9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TierOneLeverageCapitalToAverageAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CommonEquityTierOneCapitalAbstract_d60b680c-9569-46a7-a28e-947a6534923f" xlink:to="loc_us-gaap_TierOneLeverageCapitalToAverageAssets_ca2f653e-5a13-4fd1-8ad3-850360454ed9" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_RegulatoryMinimumRatioPlusCCBAbstract_3764e779-93f3-4c06-80c8-fc540112de69" xlink:href="shbi-20241231.xsd#shbi_RegulatoryMinimumRatioPlusCCBAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsLineItems_4243bc0d-aecb-4b23-823f-6621a99db51f" xlink:to="loc_shbi_RegulatoryMinimumRatioPlusCCBAbstract_3764e779-93f3-4c06-80c8-fc540112de69" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_BankingRegulationCommonEquityTier1RiskBasedCapitalRegulatoryMinimumRatioPlusCapitalConversionBufferRatio_148860b0-c94d-435d-a4fa-5d99a08a133d" xlink:href="shbi-20241231.xsd#shbi_BankingRegulationCommonEquityTier1RiskBasedCapitalRegulatoryMinimumRatioPlusCapitalConversionBufferRatio"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_shbi_RegulatoryMinimumRatioPlusCCBAbstract_3764e779-93f3-4c06-80c8-fc540112de69" xlink:to="loc_shbi_BankingRegulationCommonEquityTier1RiskBasedCapitalRegulatoryMinimumRatioPlusCapitalConversionBufferRatio_148860b0-c94d-435d-a4fa-5d99a08a133d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_BankingRegulationTier1RiskBasedCapitalRegulatoryMinimumRatioPlusCapitalConversionBufferRatioActual_9ff12b39-ac64-48c3-a50a-e2762cf33315" xlink:href="shbi-20241231.xsd#shbi_BankingRegulationTier1RiskBasedCapitalRegulatoryMinimumRatioPlusCapitalConversionBufferRatioActual"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_shbi_RegulatoryMinimumRatioPlusCCBAbstract_3764e779-93f3-4c06-80c8-fc540112de69" xlink:to="loc_shbi_BankingRegulationTier1RiskBasedCapitalRegulatoryMinimumRatioPlusCapitalConversionBufferRatioActual_9ff12b39-ac64-48c3-a50a-e2762cf33315" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_BankingRegulationTotalCapitalToRWARegulatoryMinimumRatioPlusCapitalConversionBufferRatio_00537f09-9671-47a3-bbe0-81d19bea10b1" xlink:href="shbi-20241231.xsd#shbi_BankingRegulationTotalCapitalToRWARegulatoryMinimumRatioPlusCapitalConversionBufferRatio"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_shbi_RegulatoryMinimumRatioPlusCCBAbstract_3764e779-93f3-4c06-80c8-fc540112de69" xlink:to="loc_shbi_BankingRegulationTotalCapitalToRWARegulatoryMinimumRatioPlusCapitalConversionBufferRatio_00537f09-9671-47a3-bbe0-81d19bea10b1" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_BankingRegulationTier1LeverageCapitalRatioRegulatoryMinimumRatioPlusCapitalConversionBufferRatio_fb945795-8ed9-4116-8128-7f093468732a" xlink:href="shbi-20241231.xsd#shbi_BankingRegulationTier1LeverageCapitalRatioRegulatoryMinimumRatioPlusCapitalConversionBufferRatio"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_shbi_RegulatoryMinimumRatioPlusCCBAbstract_3764e779-93f3-4c06-80c8-fc540112de69" xlink:to="loc_shbi_BankingRegulationTier1LeverageCapitalRatioRegulatoryMinimumRatioPlusCapitalConversionBufferRatio_fb945795-8ed9-4116-8128-7f093468732a" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RiskBasedRatiosAbstract_45492eef-5285-42c7-b722-6842055b864a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RiskBasedRatiosAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsLineItems_4243bc0d-aecb-4b23-823f-6621a99db51f" xlink:to="loc_us-gaap_RiskBasedRatiosAbstract_45492eef-5285-42c7-b722-6842055b864a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BankingRegulationCommonEquityTierOneRiskBasedCapitalRatioWellCapitalizedMinimum_1b2c4c96-1f0f-41f4-b331-2df91e597cbe" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BankingRegulationCommonEquityTierOneRiskBasedCapitalRatioWellCapitalizedMinimum"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RiskBasedRatiosAbstract_45492eef-5285-42c7-b722-6842055b864a" xlink:to="loc_us-gaap_BankingRegulationCommonEquityTierOneRiskBasedCapitalRatioWellCapitalizedMinimum_1b2c4c96-1f0f-41f4-b331-2df91e597cbe" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TierOneRiskBasedCapitalRequiredToBeWellCapitalizedToRiskWeightedAssets_31cd901c-8dd7-465c-8ac6-4708c1790ea2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TierOneRiskBasedCapitalRequiredToBeWellCapitalizedToRiskWeightedAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RiskBasedRatiosAbstract_45492eef-5285-42c7-b722-6842055b864a" xlink:to="loc_us-gaap_TierOneRiskBasedCapitalRequiredToBeWellCapitalizedToRiskWeightedAssets_31cd901c-8dd7-465c-8ac6-4708c1790ea2" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CapitalRequiredToBeWellCapitalizedToRiskWeightedAssets_cf62173a-e308-42b6-8e4b-2c1fe7d28150" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CapitalRequiredToBeWellCapitalizedToRiskWeightedAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RiskBasedRatiosAbstract_45492eef-5285-42c7-b722-6842055b864a" xlink:to="loc_us-gaap_CapitalRequiredToBeWellCapitalizedToRiskWeightedAssets_cf62173a-e308-42b6-8e4b-2c1fe7d28150" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TierOneLeverageCapitalRequiredToBeWellCapitalizedToAverageAssets_b3573082-7fb4-429a-a8cd-658325b62e3f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TierOneLeverageCapitalRequiredToBeWellCapitalizedToAverageAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RiskBasedRatiosAbstract_45492eef-5285-42c7-b722-6842055b864a" xlink:to="loc_us-gaap_TierOneLeverageCapitalRequiredToBeWellCapitalizedToAverageAssets_b3573082-7fb4-429a-a8cd-658325b62e3f" xlink:type="arc" order="4"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.shbi.com/role/FairValueMeasurementsEstimatedFairValueandRangeDetails" xlink:type="simple" xlink:href="shbi-20241231.xsd#FairValueMeasurementsEstimatedFairValueandRangeDetails"/>
  <link:definitionLink xlink:role="http://www.shbi.com/role/FairValueMeasurementsEstimatedFairValueandRangeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_492bc2b6-5257-4528-ae72-4036dc1a7145" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_d550ebc2-9ed3-4d69-bfda-c818311a343f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_492bc2b6-5257-4528-ae72-4036dc1a7145" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_d550ebc2-9ed3-4d69-bfda-c818311a343f" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_d7cba077-4657-4e2e-aba2-58ffe3d44ab0" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_d550ebc2-9ed3-4d69-bfda-c818311a343f" xlink:to="loc_srt_RangeAxis_d7cba077-4657-4e2e-aba2-58ffe3d44ab0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_d7cba077-4657-4e2e-aba2-58ffe3d44ab0_default" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_d7cba077-4657-4e2e-aba2-58ffe3d44ab0" xlink:to="loc_srt_RangeMember_d7cba077-4657-4e2e-aba2-58ffe3d44ab0_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_9ef5225f-69b2-4523-ad26-c25d95835536" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_d7cba077-4657-4e2e-aba2-58ffe3d44ab0" xlink:to="loc_srt_RangeMember_9ef5225f-69b2-4523-ad26-c25d95835536" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_59a5bcf1-fa67-485f-8857-c47408a55d41" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_9ef5225f-69b2-4523-ad26-c25d95835536" xlink:to="loc_srt_MinimumMember_59a5bcf1-fa67-485f-8857-c47408a55d41" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_967240d5-6ced-48e6-b842-63d34a0b9b9d" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_9ef5225f-69b2-4523-ad26-c25d95835536" xlink:to="loc_srt_MaximumMember_967240d5-6ced-48e6-b842-63d34a0b9b9d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ArithmeticAverageMember_030b981a-21fa-4de9-878f-7bc116111e2c" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_ArithmeticAverageMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_9ef5225f-69b2-4523-ad26-c25d95835536" xlink:to="loc_srt_ArithmeticAverageMember_030b981a-21fa-4de9-878f-7bc116111e2c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ValuationTechniqueAxis_d07fd09a-3c04-4158-aba7-92127cf04002" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ValuationTechniqueAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_d550ebc2-9ed3-4d69-bfda-c818311a343f" xlink:to="loc_us-gaap_ValuationTechniqueAxis_d07fd09a-3c04-4158-aba7-92127cf04002" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ValuationTechniqueDomain_d07fd09a-3c04-4158-aba7-92127cf04002_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ValuationTechniqueDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ValuationTechniqueAxis_d07fd09a-3c04-4158-aba7-92127cf04002" xlink:to="loc_us-gaap_ValuationTechniqueDomain_d07fd09a-3c04-4158-aba7-92127cf04002_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ValuationTechniqueDomain_3a545c76-5908-4306-8c74-67e99edd7976" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ValuationTechniqueDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ValuationTechniqueAxis_d07fd09a-3c04-4158-aba7-92127cf04002" xlink:to="loc_us-gaap_ValuationTechniqueDomain_3a545c76-5908-4306-8c74-67e99edd7976" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MarketApproachValuationTechniqueMember_6a0f37d5-fc05-447a-ae00-6adf2dacb061" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_MarketApproachValuationTechniqueMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ValuationTechniqueDomain_3a545c76-5908-4306-8c74-67e99edd7976" xlink:to="loc_us-gaap_MarketApproachValuationTechniqueMember_6a0f37d5-fc05-447a-ae00-6adf2dacb061" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputTypeAxis_a4ab4369-77f2-4ef6-8d6e-8117221f1cd4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_MeasurementInputTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_d550ebc2-9ed3-4d69-bfda-c818311a343f" xlink:to="loc_us-gaap_MeasurementInputTypeAxis_a4ab4369-77f2-4ef6-8d6e-8117221f1cd4" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputTypeDomain_a4ab4369-77f2-4ef6-8d6e-8117221f1cd4_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_MeasurementInputTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_MeasurementInputTypeAxis_a4ab4369-77f2-4ef6-8d6e-8117221f1cd4" xlink:to="loc_us-gaap_MeasurementInputTypeDomain_a4ab4369-77f2-4ef6-8d6e-8117221f1cd4_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputTypeDomain_d6cd5f13-c5bd-4845-9173-3c4155da9895" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_MeasurementInputTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_MeasurementInputTypeAxis_a4ab4369-77f2-4ef6-8d6e-8117221f1cd4" xlink:to="loc_us-gaap_MeasurementInputTypeDomain_d6cd5f13-c5bd-4845-9173-3c4155da9895" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputPrepaymentRateMember_25b8dce7-7d0e-467c-9597-2585164e7a41" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_MeasurementInputPrepaymentRateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MeasurementInputTypeDomain_d6cd5f13-c5bd-4845-9173-3c4155da9895" xlink:to="loc_us-gaap_MeasurementInputPrepaymentRateMember_25b8dce7-7d0e-467c-9597-2585164e7a41" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_MeasurementInputPullThroughRateMember_51594674-a90e-40ce-9301-2f96d2b9c37b" xlink:href="shbi-20241231.xsd#shbi_MeasurementInputPullThroughRateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MeasurementInputTypeDomain_d6cd5f13-c5bd-4845-9173-3c4155da9895" xlink:to="loc_shbi_MeasurementInputPullThroughRateMember_51594674-a90e-40ce-9301-2f96d2b9c37b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_18d279c0-d20c-4c63-8e86-d2835521617f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_d550ebc2-9ed3-4d69-bfda-c818311a343f" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_18d279c0-d20c-4c63-8e86-d2835521617f" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_18d279c0-d20c-4c63-8e86-d2835521617f_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_18d279c0-d20c-4c63-8e86-d2835521617f" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_18d279c0-d20c-4c63-8e86-d2835521617f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_97e2eeed-d1be-483a-b628-6b47a89c0da7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_18d279c0-d20c-4c63-8e86-d2835521617f" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_97e2eeed-d1be-483a-b628-6b47a89c0da7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel3Member_7ba9133d-7186-4e65-a154-c039fbcd52df" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueInputsLevel3Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_97e2eeed-d1be-483a-b628-6b47a89c0da7" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_7ba9133d-7186-4e65-a154-c039fbcd52df" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentAxis_7754c062-5f15-42fe-93e0-03c19eb1c055" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancialInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_d550ebc2-9ed3-4d69-bfda-c818311a343f" xlink:to="loc_us-gaap_FinancialInstrumentAxis_7754c062-5f15-42fe-93e0-03c19eb1c055" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_7754c062-5f15-42fe-93e0-03c19eb1c055_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_7754c062-5f15-42fe-93e0-03c19eb1c055" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_7754c062-5f15-42fe-93e0-03c19eb1c055_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_9a49502d-ca29-4adb-b686-3db7590c95e9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_7754c062-5f15-42fe-93e0-03c19eb1c055" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_9a49502d-ca29-4adb-b686-3db7590c95e9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestRateLockCommitmentsMember_aef54a25-d425-473c-8826-d1be1b4cd49f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InterestRateLockCommitmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_9a49502d-ca29-4adb-b686-3db7590c95e9" xlink:to="loc_us-gaap_InterestRateLockCommitmentsMember_aef54a25-d425-473c-8826-d1be1b4cd49f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ServicingAssetAtFairValueAmount_1fdd88dd-c771-4e37-a97f-e1a8900d948c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ServicingAssetAtFairValueAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_492bc2b6-5257-4528-ae72-4036dc1a7145" xlink:to="loc_us-gaap_ServicingAssetAtFairValueAmount_1fdd88dd-c771-4e37-a97f-e1a8900d948c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ServicingAssetMeasurementInput_49ade674-6a00-4b14-b2b3-6356ac49243b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ServicingAssetMeasurementInput"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_492bc2b6-5257-4528-ae72-4036dc1a7145" xlink:to="loc_us-gaap_ServicingAssetMeasurementInput_49ade674-6a00-4b14-b2b3-6356ac49243b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_c7ddcde0-415e-489e-8b85-9e519b82864a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeFairValueOfDerivativeAsset"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_492bc2b6-5257-4528-ae72-4036dc1a7145" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_c7ddcde0-415e-489e-8b85-9e519b82864a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssetMeasurementInput_2534edf3-6ee9-4110-956e-875a83d71968" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeAssetMeasurementInput"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_492bc2b6-5257-4528-ae72-4036dc1a7145" xlink:to="loc_us-gaap_DerivativeAssetMeasurementInput_2534edf3-6ee9-4110-956e-875a83d71968" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.shbi.com/role/FairValueMeasurementsActivityinIRLCsDetails" xlink:type="simple" xlink:href="shbi-20241231.xsd#FairValueMeasurementsActivityinIRLCsDetails"/>
  <link:definitionLink xlink:role="http://www.shbi.com/role/FairValueMeasurementsActivityinIRLCsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_21d0dfed-d882-49dc-945f-ba6cf0db1072" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_bb93782d-ced7-4812-bbfb-7e0caecfbbc4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_21d0dfed-d882-49dc-945f-ba6cf0db1072" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_bb93782d-ced7-4812-bbfb-7e0caecfbbc4" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentAxis_c7bfd232-1dda-4d7b-ad9c-621467114049" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancialInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_bb93782d-ced7-4812-bbfb-7e0caecfbbc4" xlink:to="loc_us-gaap_FinancialInstrumentAxis_c7bfd232-1dda-4d7b-ad9c-621467114049" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_c7bfd232-1dda-4d7b-ad9c-621467114049_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_c7bfd232-1dda-4d7b-ad9c-621467114049" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_c7bfd232-1dda-4d7b-ad9c-621467114049_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_0799d163-a304-4391-9052-713e58918a5c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_c7bfd232-1dda-4d7b-ad9c-621467114049" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_0799d163-a304-4391-9052-713e58918a5c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestRateLockCommitmentsMember_0de494fa-a76f-45d8-801f-0a8f3bd8bef4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InterestRateLockCommitmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_0799d163-a304-4391-9052-713e58918a5c" xlink:to="loc_us-gaap_InterestRateLockCommitmentsMember_0de494fa-a76f-45d8-801f-0a8f3bd8bef4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_DerivativeAssetSubjectToMasterNettingArrangementRollForward_abe695a7-e38c-4447-bede-10a735d6ec66" xlink:href="shbi-20241231.xsd#shbi_DerivativeAssetSubjectToMasterNettingArrangementRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_21d0dfed-d882-49dc-945f-ba6cf0db1072" xlink:to="loc_shbi_DerivativeAssetSubjectToMasterNettingArrangementRollForward_abe695a7-e38c-4447-bede-10a735d6ec66" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral_5add6408-a579-472e-92af-ba29abffef91" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_shbi_DerivativeAssetSubjectToMasterNettingArrangementRollForward_abe695a7-e38c-4447-bede-10a735d6ec66" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral_5add6408-a579-472e-92af-ba29abffef91" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_DerivativeAssetChangesInFairValueResultingFromChangesInValuationInputsOrChangesInAssumptions_157f92a9-e515-4fc5-81c5-97f54008ff58" xlink:href="shbi-20241231.xsd#shbi_DerivativeAssetChangesInFairValueResultingFromChangesInValuationInputsOrChangesInAssumptions"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_shbi_DerivativeAssetSubjectToMasterNettingArrangementRollForward_abe695a7-e38c-4447-bede-10a735d6ec66" xlink:to="loc_shbi_DerivativeAssetChangesInFairValueResultingFromChangesInValuationInputsOrChangesInAssumptions_157f92a9-e515-4fc5-81c5-97f54008ff58" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral_44ca9dd1-b549-4d2c-b852-c9b3d4d1213f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.shbi.com/role/FairValueMeasurementsAssetsandLiabilitiesMeasuredonRecurringBasisDetails" xlink:type="simple" xlink:href="shbi-20241231.xsd#FairValueMeasurementsAssetsandLiabilitiesMeasuredonRecurringBasisDetails"/>
  <link:definitionLink xlink:role="http://www.shbi.com/role/FairValueMeasurementsAssetsandLiabilitiesMeasuredonRecurringBasisDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_41fac87e-0f13-4f9a-8955-46812d15160b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByBalanceSheetGroupingTable_fda652f7-e78f-439b-a344-a39d58cc6fc6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueByBalanceSheetGroupingTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_41fac87e-0f13-4f9a-8955-46812d15160b" xlink:to="loc_us-gaap_FairValueByBalanceSheetGroupingTable_fda652f7-e78f-439b-a344-a39d58cc6fc6" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentAxis_d64e474e-1a8c-4abc-af05-b406e8281b3f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancialInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueByBalanceSheetGroupingTable_fda652f7-e78f-439b-a344-a39d58cc6fc6" xlink:to="loc_us-gaap_FinancialInstrumentAxis_d64e474e-1a8c-4abc-af05-b406e8281b3f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_d64e474e-1a8c-4abc-af05-b406e8281b3f_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_d64e474e-1a8c-4abc-af05-b406e8281b3f" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_d64e474e-1a8c-4abc-af05-b406e8281b3f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_57fd7bc9-529a-4947-b48b-131ea0786fbd" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_d64e474e-1a8c-4abc-af05-b406e8281b3f" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_57fd7bc9-529a-4947-b48b-131ea0786fbd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_USGovernmentAgenciesDebtSecuritiesMember_42e09e9d-ace7-49fa-a4a1-fbf08c33b3fe" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_USGovernmentAgenciesDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_57fd7bc9-529a-4947-b48b-131ea0786fbd" xlink:to="loc_us-gaap_USGovernmentAgenciesDebtSecuritiesMember_42e09e9d-ace7-49fa-a4a1-fbf08c33b3fe" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MortgageBackedSecuritiesIssuedByUSGovernmentSponsoredEnterprisesMember_a20e0dd7-1ff0-4549-8acb-c2f3ec9e6a28" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_MortgageBackedSecuritiesIssuedByUSGovernmentSponsoredEnterprisesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_57fd7bc9-529a-4947-b48b-131ea0786fbd" xlink:to="loc_us-gaap_MortgageBackedSecuritiesIssuedByUSGovernmentSponsoredEnterprisesMember_a20e0dd7-1ff0-4549-8acb-c2f3ec9e6a28" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherDebtSecuritiesMember_6c81edf6-f7a2-4ae1-8193-8171d851aec7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_57fd7bc9-529a-4947-b48b-131ea0786fbd" xlink:to="loc_us-gaap_OtherDebtSecuritiesMember_6c81edf6-f7a2-4ae1-8193-8171d851aec7" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_ToBeAnnouncedForwardTradesMember_0c5e427a-9b15-4c5e-94c9-16beeea4f511" xlink:href="shbi-20241231.xsd#shbi_ToBeAnnouncedForwardTradesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_57fd7bc9-529a-4947-b48b-131ea0786fbd" xlink:to="loc_shbi_ToBeAnnouncedForwardTradesMember_0c5e427a-9b15-4c5e-94c9-16beeea4f511" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestRateLockCommitmentsMember_8531f09d-fec9-46e4-8362-71bfe2c26021" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InterestRateLockCommitmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_57fd7bc9-529a-4947-b48b-131ea0786fbd" xlink:to="loc_us-gaap_InterestRateLockCommitmentsMember_8531f09d-fec9-46e4-8362-71bfe2c26021" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_4e972a3c-238a-42aa-a380-019e0f5b81e2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueByBalanceSheetGroupingTable_fda652f7-e78f-439b-a344-a39d58cc6fc6" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_4e972a3c-238a-42aa-a380-019e0f5b81e2" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_4e972a3c-238a-42aa-a380-019e0f5b81e2_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_4e972a3c-238a-42aa-a380-019e0f5b81e2" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_4e972a3c-238a-42aa-a380-019e0f5b81e2_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_fd212b6d-8140-4226-87ca-3f2098adc95a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_4e972a3c-238a-42aa-a380-019e0f5b81e2" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_fd212b6d-8140-4226-87ca-3f2098adc95a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel1Member_22ed72fe-0dfd-4568-b089-22188a5e2048" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueInputsLevel1Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_fd212b6d-8140-4226-87ca-3f2098adc95a" xlink:to="loc_us-gaap_FairValueInputsLevel1Member_22ed72fe-0dfd-4568-b089-22188a5e2048" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_20e1867c-cce1-48c2-8caf-a8234aa293c0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueInputsLevel2Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_fd212b6d-8140-4226-87ca-3f2098adc95a" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_20e1867c-cce1-48c2-8caf-a8234aa293c0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel3Member_ac2b9b07-f1c8-4dd5-b450-ca3af89986b0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueInputsLevel3Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_fd212b6d-8140-4226-87ca-3f2098adc95a" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_ac2b9b07-f1c8-4dd5-b450-ca3af89986b0" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesAbstract_21410ad5-ed16-4731-8544-68eba7df9332" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AvailableForSaleSecuritiesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_41fac87e-0f13-4f9a-8955-46812d15160b" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesAbstract_21410ad5-ed16-4731-8544-68eba7df9332" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_21c78b31-2dbf-499e-acb3-3b63e6a58c2a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesAbstract_21410ad5-ed16-4731-8544-68eba7df9332" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_21c78b31-2dbf-499e-acb3-3b63e6a58c2a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesFvNi_51a85c38-cd63-4223-a47a-306ad20cf58e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquitySecuritiesFvNi"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesAbstract_21410ad5-ed16-4731-8544-68eba7df9332" xlink:to="loc_us-gaap_EquitySecuritiesFvNi_51a85c38-cd63-4223-a47a-306ad20cf58e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_9adc4dca-72ca-412c-bfb3-387e3361b84d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeFairValueOfDerivativeAsset"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesAbstract_21410ad5-ed16-4731-8544-68eba7df9332" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_9adc4dca-72ca-412c-bfb3-387e3361b84d" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LoansHeldForSaleFairValueDisclosure_5145f099-7fd8-4c0c-8ff9-3cc9562a6c5a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LoansHeldForSaleFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesAbstract_21410ad5-ed16-4731-8544-68eba7df9332" xlink:to="loc_us-gaap_LoansHeldForSaleFairValueDisclosure_5145f099-7fd8-4c0c-8ff9-3cc9562a6c5a" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LoansReceivableFairValueDisclosure_a691931f-9c47-45b8-8fc7-a0446e2aa232" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LoansReceivableFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesAbstract_21410ad5-ed16-4731-8544-68eba7df9332" xlink:to="loc_us-gaap_LoansReceivableFairValueDisclosure_a691931f-9c47-45b8-8fc7-a0446e2aa232" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ServicingAssetAtFairValueAmount_314d7ecc-7278-4a5e-abc5-b3f5c8d1ca08" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ServicingAssetAtFairValueAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesAbstract_21410ad5-ed16-4731-8544-68eba7df9332" xlink:to="loc_us-gaap_ServicingAssetAtFairValueAmount_314d7ecc-7278-4a5e-abc5-b3f5c8d1ca08" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentsFairValueDisclosure_d2c3bf61-9d67-4bdb-90f8-c8dbad9c9c22" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentsFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesAbstract_21410ad5-ed16-4731-8544-68eba7df9332" xlink:to="loc_us-gaap_InvestmentsFairValueDisclosure_d2c3bf61-9d67-4bdb-90f8-c8dbad9c9c22" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_d08ff81d-6163-4e65-820d-f5f45103fb7c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeFairValueOfDerivativeLiability"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesAbstract_21410ad5-ed16-4731-8544-68eba7df9332" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_d08ff81d-6163-4e65-820d-f5f45103fb7c" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesFairValueDisclosure_c4f864b1-63b2-43fb-a2e0-bbbc0c9acf9a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LiabilitiesFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesAbstract_21410ad5-ed16-4731-8544-68eba7df9332" xlink:to="loc_us-gaap_LiabilitiesFairValueDisclosure_c4f864b1-63b2-43fb-a2e0-bbbc0c9acf9a" xlink:type="arc" order="9"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.shbi.com/role/FairValueMeasurementsFairValueofAssetsMeasuredonNonrecurringBasisDetails" xlink:type="simple" xlink:href="shbi-20241231.xsd#FairValueMeasurementsFairValueofAssetsMeasuredonNonrecurringBasisDetails"/>
  <link:definitionLink xlink:role="http://www.shbi.com/role/FairValueMeasurementsFairValueofAssetsMeasuredonNonrecurringBasisDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_158922d1-f592-4fbc-aa49-466e39f63310" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_65d4e03c-a611-4adc-8fc1-c368d4797466" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_158922d1-f592-4fbc-aa49-466e39f63310" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_65d4e03c-a611-4adc-8fc1-c368d4797466" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_028b5d15-d4b8-4b8a-b720-3db0ac0acba0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_65d4e03c-a611-4adc-8fc1-c368d4797466" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_028b5d15-d4b8-4b8a-b720-3db0ac0acba0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_028b5d15-d4b8-4b8a-b720-3db0ac0acba0_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_028b5d15-d4b8-4b8a-b720-3db0ac0acba0" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_028b5d15-d4b8-4b8a-b720-3db0ac0acba0_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_0f210f05-18b9-4f43-95be-dd36134f6168" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_028b5d15-d4b8-4b8a-b720-3db0ac0acba0" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_0f210f05-18b9-4f43-95be-dd36134f6168" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel3Member_a7a704c6-baa0-4794-9122-e7943814141f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueInputsLevel3Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_0f210f05-18b9-4f43-95be-dd36134f6168" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_a7a704c6-baa0-4794-9122-e7943814141f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByMeasurementFrequencyAxis_543e7efa-da6c-4cc4-b7c8-550159ac37a7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueByMeasurementFrequencyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_65d4e03c-a611-4adc-8fc1-c368d4797466" xlink:to="loc_us-gaap_FairValueByMeasurementFrequencyAxis_543e7efa-da6c-4cc4-b7c8-550159ac37a7" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_543e7efa-da6c-4cc4-b7c8-550159ac37a7_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueMeasurementFrequencyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_543e7efa-da6c-4cc4-b7c8-550159ac37a7" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_543e7efa-da6c-4cc4-b7c8-550159ac37a7_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_73b841a2-dc9c-4794-bcec-cf928c9c7be3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueMeasurementFrequencyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_543e7efa-da6c-4cc4-b7c8-550159ac37a7" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_73b841a2-dc9c-4794-bcec-cf928c9c7be3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsNonrecurringMember_1eaa3f66-ac4e-436f-8ec5-09ad61b3df05" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueMeasurementsNonrecurringMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementFrequencyDomain_73b841a2-dc9c-4794-bcec-cf928c9c7be3" xlink:to="loc_us-gaap_FairValueMeasurementsNonrecurringMember_1eaa3f66-ac4e-436f-8ec5-09ad61b3df05" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ValuationTechniqueAxis_1854effd-8ce8-44a0-8810-3e776b3af5f3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ValuationTechniqueAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_65d4e03c-a611-4adc-8fc1-c368d4797466" xlink:to="loc_us-gaap_ValuationTechniqueAxis_1854effd-8ce8-44a0-8810-3e776b3af5f3" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ValuationTechniqueDomain_1854effd-8ce8-44a0-8810-3e776b3af5f3_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ValuationTechniqueDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ValuationTechniqueAxis_1854effd-8ce8-44a0-8810-3e776b3af5f3" xlink:to="loc_us-gaap_ValuationTechniqueDomain_1854effd-8ce8-44a0-8810-3e776b3af5f3_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ValuationTechniqueDomain_7b9a27af-319f-4d56-b90e-f135a0292f26" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ValuationTechniqueDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ValuationTechniqueAxis_1854effd-8ce8-44a0-8810-3e776b3af5f3" xlink:to="loc_us-gaap_ValuationTechniqueDomain_7b9a27af-319f-4d56-b90e-f135a0292f26" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_AppraisalOfCollateralMember_b335c7b1-df4e-4f2e-93df-66ba2f94a55e" xlink:href="shbi-20241231.xsd#shbi_AppraisalOfCollateralMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ValuationTechniqueDomain_7b9a27af-319f-4d56-b90e-f135a0292f26" xlink:to="loc_shbi_AppraisalOfCollateralMember_b335c7b1-df4e-4f2e-93df-66ba2f94a55e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_LiquidationExpenseMember_aea9dfc9-11ed-4964-ba69-ad09b4d9b1eb" xlink:href="shbi-20241231.xsd#shbi_LiquidationExpenseMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ValuationTechniqueDomain_7b9a27af-319f-4d56-b90e-f135a0292f26" xlink:to="loc_shbi_LiquidationExpenseMember_aea9dfc9-11ed-4964-ba69-ad09b4d9b1eb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_6aa213a4-ad77-4494-badc-2b6b78ce7828" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_65d4e03c-a611-4adc-8fc1-c368d4797466" xlink:to="loc_srt_RangeAxis_6aa213a4-ad77-4494-badc-2b6b78ce7828" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_6aa213a4-ad77-4494-badc-2b6b78ce7828_default" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_6aa213a4-ad77-4494-badc-2b6b78ce7828" xlink:to="loc_srt_RangeMember_6aa213a4-ad77-4494-badc-2b6b78ce7828_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_50947739-d48d-4c12-864d-16dd8edecfdd" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_6aa213a4-ad77-4494-badc-2b6b78ce7828" xlink:to="loc_srt_RangeMember_50947739-d48d-4c12-864d-16dd8edecfdd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_fdc5e7b3-ce58-4106-8e80-7b589d1050ab" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_50947739-d48d-4c12-864d-16dd8edecfdd" xlink:to="loc_srt_MinimumMember_fdc5e7b3-ce58-4106-8e80-7b589d1050ab" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_0ed54303-c739-48f5-be73-3ad891d9a07f" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_50947739-d48d-4c12-864d-16dd8edecfdd" xlink:to="loc_srt_MaximumMember_0ed54303-c739-48f5-be73-3ad891d9a07f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_WeightedAverageMember_d2131032-2044-46a4-b32e-4620f6343e63" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_WeightedAverageMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_50947739-d48d-4c12-864d-16dd8edecfdd" xlink:to="loc_srt_WeightedAverageMember_d2131032-2044-46a4-b32e-4620f6343e63" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_7ab3a5b5-60d3-449a-a78d-15bfcc58553c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivablePortfolioSegmentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_65d4e03c-a611-4adc-8fc1-c368d4797466" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_7ab3a5b5-60d3-449a-a78d-15bfcc58553c" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_7ab3a5b5-60d3-449a-a78d-15bfcc58553c_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_7ab3a5b5-60d3-449a-a78d-15bfcc58553c" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_7ab3a5b5-60d3-449a-a78d-15bfcc58553c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_c109a795-ff51-4d72-aabd-dd43bc59870a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_7ab3a5b5-60d3-449a-a78d-15bfcc58553c" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_c109a795-ff51-4d72-aabd-dd43bc59870a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommercialRealEstatePortfolioSegmentMember_edaf4511-0020-42b1-b15a-1791bd65de46" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommercialRealEstatePortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_c109a795-ff51-4d72-aabd-dd43bc59870a" xlink:to="loc_us-gaap_CommercialRealEstatePortfolioSegmentMember_edaf4511-0020-42b1-b15a-1791bd65de46" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResidentialPortfolioSegmentMember_bf562930-2afb-43e3-9e8d-659534d5bfae" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ResidentialPortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_c109a795-ff51-4d72-aabd-dd43bc59870a" xlink:to="loc_us-gaap_ResidentialPortfolioSegmentMember_bf562930-2afb-43e3-9e8d-659534d5bfae" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommercialPortfolioSegmentMember_c41f99c0-d651-4975-8b90-62420f525f3e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommercialPortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_c109a795-ff51-4d72-aabd-dd43bc59870a" xlink:to="loc_us-gaap_CommercialPortfolioSegmentMember_c41f99c0-d651-4975-8b90-62420f525f3e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConsumerPortfolioSegmentMember_2ae546de-9a84-4d25-9aa9-87a2f8f50da3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ConsumerPortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_c109a795-ff51-4d72-aabd-dd43bc59870a" xlink:to="loc_us-gaap_ConsumerPortfolioSegmentMember_2ae546de-9a84-4d25-9aa9-87a2f8f50da3" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReceivablesFairValueDisclosure_c2bef996-188b-4b33-ac9b-78a796a89f90" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ReceivablesFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_158922d1-f592-4fbc-aa49-466e39f63310" xlink:to="loc_us-gaap_ReceivablesFairValueDisclosure_c2bef996-188b-4b33-ac9b-78a796a89f90" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsFairValueDisclosure_8ef29349-cad7-4852-8497-5574ed8f4ab9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherAssetsFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_158922d1-f592-4fbc-aa49-466e39f63310" xlink:to="loc_us-gaap_OtherAssetsFairValueDisclosure_8ef29349-cad7-4852-8497-5574ed8f4ab9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_RepossessedAssetsFairValueDisclosure_fcd9529d-9a7f-4032-85ca-1302df4d57c0" xlink:href="shbi-20241231.xsd#shbi_RepossessedAssetsFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_158922d1-f592-4fbc-aa49-466e39f63310" xlink:to="loc_shbi_RepossessedAssetsFairValueDisclosure_fcd9529d-9a7f-4032-85ca-1302df4d57c0" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsHeldForSaleLongLivedFairValueDisclosure_76936d9c-4138-49e6-8693-5b017906f865" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AssetsHeldForSaleLongLivedFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_158922d1-f592-4fbc-aa49-466e39f63310" xlink:to="loc_us-gaap_AssetsHeldForSaleLongLivedFairValueDisclosure_76936d9c-4138-49e6-8693-5b017906f865" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_FairValueDisclosureRangeForAdjustingValueOfCollateralLiquidationExpenseCollateralDependentLoan_3382eb12-7c0a-4995-ad7a-b9906d3c00e0" xlink:href="shbi-20241231.xsd#shbi_FairValueDisclosureRangeForAdjustingValueOfCollateralLiquidationExpenseCollateralDependentLoan"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_158922d1-f592-4fbc-aa49-466e39f63310" xlink:to="loc_shbi_FairValueDisclosureRangeForAdjustingValueOfCollateralLiquidationExpenseCollateralDependentLoan_3382eb12-7c0a-4995-ad7a-b9906d3c00e0" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_FairValueDisclosureRangeForAdjustingValueOfCollateralAppraisalAdjustmentsOtherRealEstateOwned_fa8f1de5-55ac-443c-8edb-6f643309fce1" xlink:href="shbi-20241231.xsd#shbi_FairValueDisclosureRangeForAdjustingValueOfCollateralAppraisalAdjustmentsOtherRealEstateOwned"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_158922d1-f592-4fbc-aa49-466e39f63310" xlink:to="loc_shbi_FairValueDisclosureRangeForAdjustingValueOfCollateralAppraisalAdjustmentsOtherRealEstateOwned_fa8f1de5-55ac-443c-8edb-6f643309fce1" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_FairValueDisclosureRangeForAdjustingValueOfCollateralAppraisalAdjustmentsRepossessedProperties_b5797502-e01f-4143-be1d-c960f3b3d492" xlink:href="shbi-20241231.xsd#shbi_FairValueDisclosureRangeForAdjustingValueOfCollateralAppraisalAdjustmentsRepossessedProperties"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_158922d1-f592-4fbc-aa49-466e39f63310" xlink:to="loc_shbi_FairValueDisclosureRangeForAdjustingValueOfCollateralAppraisalAdjustmentsRepossessedProperties_b5797502-e01f-4143-be1d-c960f3b3d492" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_FairValueDisclosureRangeForAdjustingValueOfCollateralAppraisalAdjustmentsAssetsHeldForSale_bb4a5c3a-534e-44de-a0a1-e11d4a316c25" xlink:href="shbi-20241231.xsd#shbi_FairValueDisclosureRangeForAdjustingValueOfCollateralAppraisalAdjustmentsAssetsHeldForSale"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_158922d1-f592-4fbc-aa49-466e39f63310" xlink:to="loc_shbi_FairValueDisclosureRangeForAdjustingValueOfCollateralAppraisalAdjustmentsAssetsHeldForSale_bb4a5c3a-534e-44de-a0a1-e11d4a316c25" xlink:type="arc" order="7"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.shbi.com/role/FairValueofFinancialInstrumentsSummaryofCarryingAmountsandEstimatedFairValuesofFinancialInstrumentsDetails" xlink:type="simple" xlink:href="shbi-20241231.xsd#FairValueofFinancialInstrumentsSummaryofCarryingAmountsandEstimatedFairValuesofFinancialInstrumentsDetails"/>
  <link:definitionLink xlink:role="http://www.shbi.com/role/FairValueofFinancialInstrumentsSummaryofCarryingAmountsandEstimatedFairValuesofFinancialInstrumentsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_2ecd3c64-f890-4187-8da8-1404c9217e5b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByBalanceSheetGroupingTable_b4cb826b-c054-4297-9768-3b166736a2a7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueByBalanceSheetGroupingTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_2ecd3c64-f890-4187-8da8-1404c9217e5b" xlink:to="loc_us-gaap_FairValueByBalanceSheetGroupingTable_b4cb826b-c054-4297-9768-3b166736a2a7" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByMeasurementBasisAxis_764b425e-9cc0-4fa3-b558-c35c379fbd39" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueByMeasurementBasisAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueByBalanceSheetGroupingTable_b4cb826b-c054-4297-9768-3b166736a2a7" xlink:to="loc_us-gaap_FairValueByMeasurementBasisAxis_764b425e-9cc0-4fa3-b558-c35c379fbd39" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_764b425e-9cc0-4fa3-b558-c35c379fbd39_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PortionAtFairValueFairValueDisclosureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementBasisAxis_764b425e-9cc0-4fa3-b558-c35c379fbd39" xlink:to="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_764b425e-9cc0-4fa3-b558-c35c379fbd39_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueDisclosureItemAmountsDomain_4c7962dc-2e01-497d-a739-99e6d39aff71" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueDisclosureItemAmountsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementBasisAxis_764b425e-9cc0-4fa3-b558-c35c379fbd39" xlink:to="loc_us-gaap_FairValueDisclosureItemAmountsDomain_4c7962dc-2e01-497d-a739-99e6d39aff71" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_1af702e0-75d5-4f70-9d6b-2236f336ef6a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PortionAtFairValueFairValueDisclosureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueDisclosureItemAmountsDomain_4c7962dc-2e01-497d-a739-99e6d39aff71" xlink:to="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_1af702e0-75d5-4f70-9d6b-2236f336ef6a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CarryingReportedAmountFairValueDisclosureMember_2ff90ec5-471f-47d1-bcb8-29c5ce169a96" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CarryingReportedAmountFairValueDisclosureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_1af702e0-75d5-4f70-9d6b-2236f336ef6a" xlink:to="loc_us-gaap_CarryingReportedAmountFairValueDisclosureMember_2ff90ec5-471f-47d1-bcb8-29c5ce169a96" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EstimateOfFairValueFairValueDisclosureMember_071f0981-4204-40b9-95c3-b604d7a9cd0a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EstimateOfFairValueFairValueDisclosureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_1af702e0-75d5-4f70-9d6b-2236f336ef6a" xlink:to="loc_us-gaap_EstimateOfFairValueFairValueDisclosureMember_071f0981-4204-40b9-95c3-b604d7a9cd0a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_1be1ac32-ce6d-4dd4-84e9-89c2302dbe84" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueByBalanceSheetGroupingTable_b4cb826b-c054-4297-9768-3b166736a2a7" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_1be1ac32-ce6d-4dd4-84e9-89c2302dbe84" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_1be1ac32-ce6d-4dd4-84e9-89c2302dbe84_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_1be1ac32-ce6d-4dd4-84e9-89c2302dbe84" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_1be1ac32-ce6d-4dd4-84e9-89c2302dbe84_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_8ecd55fc-480c-45da-9cbe-aecac84f56af" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_1be1ac32-ce6d-4dd4-84e9-89c2302dbe84" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_8ecd55fc-480c-45da-9cbe-aecac84f56af" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel1Member_5d3105e3-eda1-4d26-add0-ec9a0ca92768" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueInputsLevel1Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_8ecd55fc-480c-45da-9cbe-aecac84f56af" xlink:to="loc_us-gaap_FairValueInputsLevel1Member_5d3105e3-eda1-4d26-add0-ec9a0ca92768" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_963acd9d-821a-438b-a610-88843e7755c8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueInputsLevel2Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_8ecd55fc-480c-45da-9cbe-aecac84f56af" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_963acd9d-821a-438b-a610-88843e7755c8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel3Member_cc18adfb-b20e-48f0-867b-0c45320ddf40" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueInputsLevel3Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_8ecd55fc-480c-45da-9cbe-aecac84f56af" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_cc18adfb-b20e-48f0-867b-0c45320ddf40" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentAxis_d35e117c-b2d4-46f9-b96e-8ea3d2acfc0d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancialInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueByBalanceSheetGroupingTable_b4cb826b-c054-4297-9768-3b166736a2a7" xlink:to="loc_us-gaap_FinancialInstrumentAxis_d35e117c-b2d4-46f9-b96e-8ea3d2acfc0d" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_d35e117c-b2d4-46f9-b96e-8ea3d2acfc0d_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_d35e117c-b2d4-46f9-b96e-8ea3d2acfc0d" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_d35e117c-b2d4-46f9-b96e-8ea3d2acfc0d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_0c42a219-0820-40b0-8193-364a5177be09" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_d35e117c-b2d4-46f9-b96e-8ea3d2acfc0d" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_0c42a219-0820-40b0-8193-364a5177be09" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_ToBeAnnouncedForwardTradesMember_1348909e-334f-48b9-a607-8e9f245f19ce" xlink:href="shbi-20241231.xsd#shbi_ToBeAnnouncedForwardTradesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_0c42a219-0820-40b0-8193-364a5177be09" xlink:to="loc_shbi_ToBeAnnouncedForwardTradesMember_1348909e-334f-48b9-a607-8e9f245f19ce" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestRateLockCommitmentsMember_32c7c994-2ae3-484f-86f6-673ba3e6a06f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InterestRateLockCommitmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_0c42a219-0820-40b0-8193-364a5177be09" xlink:to="loc_us-gaap_InterestRateLockCommitmentsMember_32c7c994-2ae3-484f-86f6-673ba3e6a06f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentsFinancialAssetsBalanceSheetGroupingsAbstract_cb92aff2-902f-4a4e-bcfc-f09a44438f85" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancialInstrumentsFinancialAssetsBalanceSheetGroupingsAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_2ecd3c64-f890-4187-8da8-1404c9217e5b" xlink:to="loc_us-gaap_FinancialInstrumentsFinancialAssetsBalanceSheetGroupingsAbstract_cb92aff2-902f-4a4e-bcfc-f09a44438f85" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_5e6ae94f-01f0-466f-b6fc-46e1516d6ee7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CashAndCashEquivalentsFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancialInstrumentsFinancialAssetsBalanceSheetGroupingsAbstract_cb92aff2-902f-4a4e-bcfc-f09a44438f85" xlink:to="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_5e6ae94f-01f0-466f-b6fc-46e1516d6ee7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_1ab781b2-efb2-47eb-99c9-2003decdda61" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancialInstrumentsFinancialAssetsBalanceSheetGroupingsAbstract_cb92aff2-902f-4a4e-bcfc-f09a44438f85" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_1ab781b2-efb2-47eb-99c9-2003decdda61" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesFairValue_0185f53e-d3a1-4e69-8091-d453b3bd0a4d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_HeldToMaturitySecuritiesFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancialInstrumentsFinancialAssetsBalanceSheetGroupingsAbstract_cb92aff2-902f-4a4e-bcfc-f09a44438f85" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesFairValue_0185f53e-d3a1-4e69-8091-d453b3bd0a4d" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesFvNiCurrentAndNoncurrent_0316adb8-e5b9-4c1c-8b71-cb0bdbf20cf5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquitySecuritiesFvNiCurrentAndNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancialInstrumentsFinancialAssetsBalanceSheetGroupingsAbstract_cb92aff2-902f-4a4e-bcfc-f09a44438f85" xlink:to="loc_us-gaap_EquitySecuritiesFvNiCurrentAndNoncurrent_0316adb8-e5b9-4c1c-8b71-cb0bdbf20cf5" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleRestricted_a5a96373-cacc-4119-b833-059c9eb0bbb5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtSecuritiesAvailableForSaleRestricted"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancialInstrumentsFinancialAssetsBalanceSheetGroupingsAbstract_cb92aff2-902f-4a4e-bcfc-f09a44438f85" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleRestricted_a5a96373-cacc-4119-b833-059c9eb0bbb5" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LoansHeldForSaleFairValueDisclosure_c684a9b6-e9cc-4703-95e8-70f0cd02b779" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LoansHeldForSaleFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancialInstrumentsFinancialAssetsBalanceSheetGroupingsAbstract_cb92aff2-902f-4a4e-bcfc-f09a44438f85" xlink:to="loc_us-gaap_LoansHeldForSaleFairValueDisclosure_c684a9b6-e9cc-4703-95e8-70f0cd02b779" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssets_b7e2315d-2280-4ced-9cc5-09ab282657a8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancialInstrumentsFinancialAssetsBalanceSheetGroupingsAbstract_cb92aff2-902f-4a4e-bcfc-f09a44438f85" xlink:to="loc_us-gaap_DerivativeAssets_b7e2315d-2280-4ced-9cc5-09ab282657a8" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashSurrenderValueFairValueDisclosure_c1c08fd6-98f7-4cee-9059-8e7348fcd461" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CashSurrenderValueFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancialInstrumentsFinancialAssetsBalanceSheetGroupingsAbstract_cb92aff2-902f-4a4e-bcfc-f09a44438f85" xlink:to="loc_us-gaap_CashSurrenderValueFairValueDisclosure_c1c08fd6-98f7-4cee-9059-8e7348fcd461" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LoansReceivableFairValueDisclosure_a0e1e318-3c69-4dde-8bcd-5d02d9b1408a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LoansReceivableFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancialInstrumentsFinancialAssetsBalanceSheetGroupingsAbstract_cb92aff2-902f-4a4e-bcfc-f09a44438f85" xlink:to="loc_us-gaap_LoansReceivableFairValueDisclosure_a0e1e318-3c69-4dde-8bcd-5d02d9b1408a" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_LoansReceivableNetFairValueDisclosure_0b33f86f-8716-4b38-8ec9-7008e4c3928a" xlink:href="shbi-20241231.xsd#shbi_LoansReceivableNetFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancialInstrumentsFinancialAssetsBalanceSheetGroupingsAbstract_cb92aff2-902f-4a4e-bcfc-f09a44438f85" xlink:to="loc_shbi_LoansReceivableNetFairValueDisclosure_0b33f86f-8716-4b38-8ec9-7008e4c3928a" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ServicingAssetAtFairValueAmount_6786b1ca-be7d-4d76-9067-7de758156c68" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ServicingAssetAtFairValueAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancialInstrumentsFinancialAssetsBalanceSheetGroupingsAbstract_cb92aff2-902f-4a4e-bcfc-f09a44438f85" xlink:to="loc_us-gaap_ServicingAssetAtFairValueAmount_6786b1ca-be7d-4d76-9067-7de758156c68" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestReceivable_94608371-294a-43e5-a66c-6976d93b2123" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InterestReceivable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancialInstrumentsFinancialAssetsBalanceSheetGroupingsAbstract_cb92aff2-902f-4a4e-bcfc-f09a44438f85" xlink:to="loc_us-gaap_InterestReceivable_94608371-294a-43e5-a66c-6976d93b2123" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentsFinancialLiabilitiesBalanceSheetGroupingsAbstract_54ea5520-db41-4931-bc1e-e7dc750ba8ff" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancialInstrumentsFinancialLiabilitiesBalanceSheetGroupingsAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_2ecd3c64-f890-4187-8da8-1404c9217e5b" xlink:to="loc_us-gaap_FinancialInstrumentsFinancialLiabilitiesBalanceSheetGroupingsAbstract_54ea5520-db41-4931-bc1e-e7dc750ba8ff" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentFairValueDisclosureAbstract_922846c2-4909-4be5-8336-12b21689cc4b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentFairValueDisclosureAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancialInstrumentsFinancialLiabilitiesBalanceSheetGroupingsAbstract_54ea5520-db41-4931-bc1e-e7dc750ba8ff" xlink:to="loc_us-gaap_DebtInstrumentFairValueDisclosureAbstract_922846c2-4909-4be5-8336-12b21689cc4b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_NoninterestBearingDemandDepositsFairValueDisclosure_e676fda5-a4ce-4f37-9d6d-9ab4fbec5796" xlink:href="shbi-20241231.xsd#shbi_NoninterestBearingDemandDepositsFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentFairValueDisclosureAbstract_922846c2-4909-4be5-8336-12b21689cc4b" xlink:to="loc_shbi_NoninterestBearingDemandDepositsFairValueDisclosure_e676fda5-a4ce-4f37-9d6d-9ab4fbec5796" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_InterestBearingCheckingDepositsFairValueDisclosure_a3644de0-9e8c-4d90-bd63-35572baaea06" xlink:href="shbi-20241231.xsd#shbi_InterestBearingCheckingDepositsFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentFairValueDisclosureAbstract_922846c2-4909-4be5-8336-12b21689cc4b" xlink:to="loc_shbi_InterestBearingCheckingDepositsFairValueDisclosure_a3644de0-9e8c-4d90-bd63-35572baaea06" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_MoneyMarketDepositsFairValueDisclosure_5dd11df7-6da3-4904-a889-f1d26b8abf34" xlink:href="shbi-20241231.xsd#shbi_MoneyMarketDepositsFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentFairValueDisclosureAbstract_922846c2-4909-4be5-8336-12b21689cc4b" xlink:to="loc_shbi_MoneyMarketDepositsFairValueDisclosure_5dd11df7-6da3-4904-a889-f1d26b8abf34" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_TimeDepositsFairValueDisclosure_9237c72d-50b7-4bc2-8b3e-f0099eea18fb" xlink:href="shbi-20241231.xsd#shbi_TimeDepositsFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentFairValueDisclosureAbstract_922846c2-4909-4be5-8336-12b21689cc4b" xlink:to="loc_shbi_TimeDepositsFairValueDisclosure_9237c72d-50b7-4bc2-8b3e-f0099eea18fb" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_FederalHomeLoanBankAdvancesFairValue_74b9cfca-1511-4a3e-9fa6-640fe52cf5fd" xlink:href="shbi-20241231.xsd#shbi_FederalHomeLoanBankAdvancesFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancialInstrumentsFinancialLiabilitiesBalanceSheetGroupingsAbstract_54ea5520-db41-4931-bc1e-e7dc750ba8ff" xlink:to="loc_shbi_FederalHomeLoanBankAdvancesFairValue_74b9cfca-1511-4a3e-9fa6-640fe52cf5fd" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_GuaranteedPreferredBeneficialInterestInJuniorSubordinatedDebenturesTRUPSFairValueDisclosure_6375c6ee-2afa-4d58-aab0-daa4586c0b6c" xlink:href="shbi-20241231.xsd#shbi_GuaranteedPreferredBeneficialInterestInJuniorSubordinatedDebenturesTRUPSFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancialInstrumentsFinancialLiabilitiesBalanceSheetGroupingsAbstract_54ea5520-db41-4931-bc1e-e7dc750ba8ff" xlink:to="loc_shbi_GuaranteedPreferredBeneficialInterestInJuniorSubordinatedDebenturesTRUPSFairValueDisclosure_6375c6ee-2afa-4d58-aab0-daa4586c0b6c" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisSubordinatedDebtObligations_86b7fe23-4db9-439c-bb94-4705ef8f94a2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisSubordinatedDebtObligations"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancialInstrumentsFinancialLiabilitiesBalanceSheetGroupingsAbstract_54ea5520-db41-4931-bc1e-e7dc750ba8ff" xlink:to="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisSubordinatedDebtObligations_86b7fe23-4db9-439c-bb94-4705ef8f94a2" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilities_be72ca46-b870-47cf-8c51-b9c10164dbcd" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeLiabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancialInstrumentsFinancialLiabilitiesBalanceSheetGroupingsAbstract_54ea5520-db41-4931-bc1e-e7dc750ba8ff" xlink:to="loc_us-gaap_DerivativeLiabilities_be72ca46-b870-47cf-8c51-b9c10164dbcd" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestPayableCurrentAndNoncurrent_e4b09c4b-5e62-4b13-8d00-4e6641ec94f4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InterestPayableCurrentAndNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancialInstrumentsFinancialLiabilitiesBalanceSheetGroupingsAbstract_54ea5520-db41-4931-bc1e-e7dc750ba8ff" xlink:to="loc_us-gaap_InterestPayableCurrentAndNoncurrent_e4b09c4b-5e62-4b13-8d00-4e6641ec94f4" xlink:type="arc" order="6"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.shbi.com/role/CommitmentsandContingenciesNarrativeDetails" xlink:type="simple" xlink:href="shbi-20241231.xsd#CommitmentsandContingenciesNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.shbi.com/role/CommitmentsandContingenciesNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueOffBalanceSheetRisksDisclosureInformationLineItems_fc30b153-6d24-42e5-b21e-0d4422157569" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueOffBalanceSheetRisksDisclosureInformationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfFairValueOffBalanceSheetRisksTable_e922b604-a040-4a65-ba1b-922c4ea16d81" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfFairValueOffBalanceSheetRisksTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueOffBalanceSheetRisksDisclosureInformationLineItems_fc30b153-6d24-42e5-b21e-0d4422157569" xlink:to="loc_us-gaap_ScheduleOfFairValueOffBalanceSheetRisksTable_e922b604-a040-4a65-ba1b-922c4ea16d81" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_46802461-d304-4102-bddf-37d028f602f4" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFairValueOffBalanceSheetRisksTable_e922b604-a040-4a65-ba1b-922c4ea16d81" xlink:to="loc_srt_RangeAxis_46802461-d304-4102-bddf-37d028f602f4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_46802461-d304-4102-bddf-37d028f602f4_default" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_46802461-d304-4102-bddf-37d028f602f4" xlink:to="loc_srt_RangeMember_46802461-d304-4102-bddf-37d028f602f4_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_88449f88-8ada-428f-8b5e-b29397b576b0" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_46802461-d304-4102-bddf-37d028f602f4" xlink:to="loc_srt_RangeMember_88449f88-8ada-428f-8b5e-b29397b576b0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_84a044b6-cdf1-4ebf-9d73-c9fdce64465f" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_88449f88-8ada-428f-8b5e-b29397b576b0" xlink:to="loc_srt_MinimumMember_84a044b6-cdf1-4ebf-9d73-c9fdce64465f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_65757d21-337c-4b1f-af82-f98b6a132113" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_88449f88-8ada-428f-8b5e-b29397b576b0" xlink:to="loc_srt_MaximumMember_65757d21-337c-4b1f-af82-f98b6a132113" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_FixedRateLoanCommitmentInterestRate_0fa196b2-4db8-461d-8505-02b15b14640d" xlink:href="shbi-20241231.xsd#shbi_FixedRateLoanCommitmentInterestRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueOffBalanceSheetRisksDisclosureInformationLineItems_fc30b153-6d24-42e5-b21e-0d4422157569" xlink:to="loc_shbi_FixedRateLoanCommitmentInterestRate_0fa196b2-4db8-461d-8505-02b15b14640d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OffBalanceSheetCreditLossLiabilityCreditLossExpenseReversal_10456d75-b2c0-4fee-a83a-626941f35cbf" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OffBalanceSheetCreditLossLiabilityCreditLossExpenseReversal"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueOffBalanceSheetRisksDisclosureInformationLineItems_fc30b153-6d24-42e5-b21e-0d4422157569" xlink:to="loc_us-gaap_OffBalanceSheetCreditLossLiabilityCreditLossExpenseReversal_10456d75-b2c0-4fee-a83a-626941f35cbf" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.shbi.com/role/CommitmentsandContingenciesScheduleofCommitmentsOutstandingDetails" xlink:type="simple" xlink:href="shbi-20241231.xsd#CommitmentsandContingenciesScheduleofCommitmentsOutstandingDetails"/>
  <link:definitionLink xlink:role="http://www.shbi.com/role/CommitmentsandContingenciesScheduleofCommitmentsOutstandingDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueOffBalanceSheetRisksDisclosureInformationLineItems_8750dc98-3a20-49bf-bb1a-2e027cefa145" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueOffBalanceSheetRisksDisclosureInformationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfFairValueOffBalanceSheetRisksTable_57f1207c-90cc-4d36-9f63-8262306cc68e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfFairValueOffBalanceSheetRisksTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueOffBalanceSheetRisksDisclosureInformationLineItems_8750dc98-3a20-49bf-bb1a-2e027cefa145" xlink:to="loc_us-gaap_ScheduleOfFairValueOffBalanceSheetRisksTable_57f1207c-90cc-4d36-9f63-8262306cc68e" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentAxis_fa83951f-2397-4b24-9d10-9f2432fd5c7e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancialInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFairValueOffBalanceSheetRisksTable_57f1207c-90cc-4d36-9f63-8262306cc68e" xlink:to="loc_us-gaap_FinancialInstrumentAxis_fa83951f-2397-4b24-9d10-9f2432fd5c7e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_fa83951f-2397-4b24-9d10-9f2432fd5c7e_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_fa83951f-2397-4b24-9d10-9f2432fd5c7e" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_fa83951f-2397-4b24-9d10-9f2432fd5c7e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_05421711-82c0-4f90-8ba7-d6617491ddfc" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_fa83951f-2397-4b24-9d10-9f2432fd5c7e" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_05421711-82c0-4f90-8ba7-d6617491ddfc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommitmentsToExtendCreditMember_8a628d40-8d39-4255-b60c-16d2aa2d8dab" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommitmentsToExtendCreditMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_05421711-82c0-4f90-8ba7-d6617491ddfc" xlink:to="loc_us-gaap_CommitmentsToExtendCreditMember_8a628d40-8d39-4255-b60c-16d2aa2d8dab" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnusedLinesOfCreditMember_ed755968-73c5-4024-8d40-4afd52ff0ad1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_UnusedLinesOfCreditMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_05421711-82c0-4f90-8ba7-d6617491ddfc" xlink:to="loc_us-gaap_UnusedLinesOfCreditMember_ed755968-73c5-4024-8d40-4afd52ff0ad1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueDisclosureOffbalanceSheetRisksAmountLiability_5bfa2f54-f424-40f8-a125-c74479fd45b5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueDisclosureOffbalanceSheetRisksAmountLiability"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueOffBalanceSheetRisksDisclosureInformationLineItems_8750dc98-3a20-49bf-bb1a-2e027cefa145" xlink:to="loc_us-gaap_FairValueDisclosureOffbalanceSheetRisksAmountLiability_5bfa2f54-f424-40f8-a125-c74479fd45b5" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.shbi.com/role/RelatedPartyTransactionsNarrativeDetails" xlink:type="simple" xlink:href="shbi-20241231.xsd#RelatedPartyTransactionsNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.shbi.com/role/RelatedPartyTransactionsNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionLineItems_ec2fc699-d171-42f8-9f54-f8c70986248d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyTransactionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_dc8e5e0d-bf98-4a23-9706-ce65f4f6d4ee" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_ec2fc699-d171-42f8-9f54-f8c70986248d" xlink:to="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_dc8e5e0d-bf98-4a23-9706-ce65f4f6d4ee" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_3c96e132-6519-4051-81bd-1d45108d8220" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyTransactionsByRelatedPartyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_dc8e5e0d-bf98-4a23-9706-ce65f4f6d4ee" xlink:to="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_3c96e132-6519-4051-81bd-1d45108d8220" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyDomain_3c96e132-6519-4051-81bd-1d45108d8220_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_3c96e132-6519-4051-81bd-1d45108d8220" xlink:to="loc_us-gaap_RelatedPartyDomain_3c96e132-6519-4051-81bd-1d45108d8220_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyDomain_ee20d69f-7d49-447b-8a8d-a02b0eadb0d0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_3c96e132-6519-4051-81bd-1d45108d8220" xlink:to="loc_us-gaap_RelatedPartyDomain_ee20d69f-7d49-447b-8a8d-a02b0eadb0d0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyMember_d3768950-e918-468c-97f2-4d43db9e7fd8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_ee20d69f-7d49-447b-8a8d-a02b0eadb0d0" xlink:to="loc_us-gaap_RelatedPartyMember_d3768950-e918-468c-97f2-4d43db9e7fd8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_OfficersDirectorsAndAssociatesMember_b752b084-1938-4481-b10e-7915a4c97529" xlink:href="shbi-20241231.xsd#shbi_OfficersDirectorsAndAssociatesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_ee20d69f-7d49-447b-8a8d-a02b0eadb0d0" xlink:to="loc_shbi_OfficersDirectorsAndAssociatesMember_b752b084-1938-4481-b10e-7915a4c97529" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_LawFirmWithCommonPartnerMember_038796a0-05b4-4307-bb08-8f6bbae8e6ab" xlink:href="shbi-20241231.xsd#shbi_LawFirmWithCommonPartnerMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_ee20d69f-7d49-447b-8a8d-a02b0eadb0d0" xlink:to="loc_shbi_LawFirmWithCommonPartnerMember_038796a0-05b4-4307-bb08-8f6bbae8e6ab" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_45234e1e-3d27-4c6d-b521-702b6de315a6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BusinessAcquisitionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_dc8e5e0d-bf98-4a23-9706-ce65f4f6d4ee" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_45234e1e-3d27-4c6d-b521-702b6de315a6" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_45234e1e-3d27-4c6d-b521-702b6de315a6_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_45234e1e-3d27-4c6d-b521-702b6de315a6" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_45234e1e-3d27-4c6d-b521-702b6de315a6_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_4d618524-0067-4eae-a405-8b56affdc94b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_45234e1e-3d27-4c6d-b521-702b6de315a6" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_4d618524-0067-4eae-a405-8b56affdc94b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_TheCommunityFinancialCorporationMember_7e86af86-5fa2-43ce-9412-0a5ec95921a9" xlink:href="shbi-20241231.xsd#shbi_TheCommunityFinancialCorporationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_4d618524-0067-4eae-a405-8b56affdc94b" xlink:to="loc_shbi_TheCommunityFinancialCorporationMember_7e86af86-5fa2-43ce-9412-0a5ec95921a9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_e3031011-5d69-48ac-9947-82373a8dc826" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_ec2fc699-d171-42f8-9f54-f8c70986248d" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_e3031011-5d69-48ac-9947-82373a8dc826" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LoansAndLeasesReceivableRelatedPartiesAdditions_39bf846a-19c1-4fb9-bf0d-49b7c5b84503" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LoansAndLeasesReceivableRelatedPartiesAdditions"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_ec2fc699-d171-42f8-9f54-f8c70986248d" xlink:to="loc_us-gaap_LoansAndLeasesReceivableRelatedPartiesAdditions_39bf846a-19c1-4fb9-bf0d-49b7c5b84503" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LoansAndLeasesReceivableRelatedPartiesProceeds_5aca552a-30b7-442a-be31-f9d1d99378b6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LoansAndLeasesReceivableRelatedPartiesProceeds"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_ec2fc699-d171-42f8-9f54-f8c70986248d" xlink:to="loc_us-gaap_LoansAndLeasesReceivableRelatedPartiesProceeds_5aca552a-30b7-442a-be31-f9d1d99378b6" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Deposits_c77f21cd-1d69-46a3-b69f-e90f3b8b6b19" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_Deposits"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_ec2fc699-d171-42f8-9f54-f8c70986248d" xlink:to="loc_us-gaap_Deposits_c77f21cd-1d69-46a3-b69f-e90f3b8b6b19" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseRenewalTerm_ad6d17a5-9674-48d8-adcd-62bbc620e5a7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LesseeOperatingLeaseRenewalTerm"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_ec2fc699-d171-42f8-9f54-f8c70986248d" xlink:to="loc_us-gaap_LesseeOperatingLeaseRenewalTerm_ad6d17a5-9674-48d8-adcd-62bbc620e5a7" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionAmountsOfTransaction_58789a07-6ae2-45b9-8a34-282c3b8709c3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyTransactionAmountsOfTransaction"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_ec2fc699-d171-42f8-9f54-f8c70986248d" xlink:to="loc_us-gaap_RelatedPartyTransactionAmountsOfTransaction_58789a07-6ae2-45b9-8a34-282c3b8709c3" xlink:type="arc" order="5"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.shbi.com/role/RevenueRecognitionNoninterestIncomeDetails" xlink:type="simple" xlink:href="shbi-20241231.xsd#RevenueRecognitionNoninterestIncomeDetails"/>
  <link:definitionLink xlink:role="http://www.shbi.com/role/RevenueRecognitionNoninterestIncomeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueLineItems_0bf6ba0e-a09e-459b-9923-a0fd6ee3bccb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DisaggregationOfRevenueLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueTable_546b2c58-2fe4-4a17-b6f1-089f3585c85a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DisaggregationOfRevenueTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_0bf6ba0e-a09e-459b-9923-a0fd6ee3bccb" xlink:to="loc_us-gaap_DisaggregationOfRevenueTable_546b2c58-2fe4-4a17-b6f1-089f3585c85a" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductOrServiceAxis_d49e43a2-6db0-43ee-8ee3-d724576592c6" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_ProductOrServiceAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_546b2c58-2fe4-4a17-b6f1-089f3585c85a" xlink:to="loc_srt_ProductOrServiceAxis_d49e43a2-6db0-43ee-8ee3-d724576592c6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_d49e43a2-6db0-43ee-8ee3-d724576592c6_default" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ProductOrServiceAxis_d49e43a2-6db0-43ee-8ee3-d724576592c6" xlink:to="loc_srt_ProductsAndServicesDomain_d49e43a2-6db0-43ee-8ee3-d724576592c6_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_29bb49c2-c053-42fb-97c4-06fdb3ea2986" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ProductOrServiceAxis_d49e43a2-6db0-43ee-8ee3-d724576592c6" xlink:to="loc_srt_ProductsAndServicesDomain_29bb49c2-c053-42fb-97c4-06fdb3ea2986" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepositAccountMember_ddb187b0-66b9-490c-bc46-ffcd48f87e54" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DepositAccountMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_29bb49c2-c053-42fb-97c4-06fdb3ea2986" xlink:to="loc_us-gaap_DepositAccountMember_ddb187b0-66b9-490c-bc46-ffcd48f87e54" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_ProductAndServiceTrustAndInvestmentManagementFeeIncomeMember_152714df-d9d1-473d-b686-8cae7a52ef8d" xlink:href="shbi-20241231.xsd#shbi_ProductAndServiceTrustAndInvestmentManagementFeeIncomeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_29bb49c2-c053-42fb-97c4-06fdb3ea2986" xlink:to="loc_shbi_ProductAndServiceTrustAndInvestmentManagementFeeIncomeMember_152714df-d9d1-473d-b686-8cae7a52ef8d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_ProductAndServiceInterchangeIncomeMember_e8bc48b9-9cd5-4d4d-b3a2-2f07213e3a78" xlink:href="shbi-20241231.xsd#shbi_ProductAndServiceInterchangeIncomeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_29bb49c2-c053-42fb-97c4-06fdb3ea2986" xlink:to="loc_shbi_ProductAndServiceInterchangeIncomeMember_e8bc48b9-9cd5-4d4d-b3a2-2f07213e3a78" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_ProductAndServiceTitleCompanyRevenueMember_672d77eb-d527-44aa-bcab-b97e28019666" xlink:href="shbi-20241231.xsd#shbi_ProductAndServiceTitleCompanyRevenueMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_29bb49c2-c053-42fb-97c4-06fdb3ea2986" xlink:to="loc_shbi_ProductAndServiceTitleCompanyRevenueMember_672d77eb-d527-44aa-bcab-b97e28019666" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_ProductAndServiceNoninterestIncomeOtherOperatingIncomeMember_f36deceb-59f1-4685-b94b-844568a73a70" xlink:href="shbi-20241231.xsd#shbi_ProductAndServiceNoninterestIncomeOtherOperatingIncomeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_29bb49c2-c053-42fb-97c4-06fdb3ea2986" xlink:to="loc_shbi_ProductAndServiceNoninterestIncomeOtherOperatingIncomeMember_f36deceb-59f1-4685-b94b-844568a73a70" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_8b21ca48-6141-4eb5-b3c3-444cb01c0867" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_0bf6ba0e-a09e-459b-9923-a0fd6ee3bccb" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_8b21ca48-6141-4eb5-b3c3-444cb01c0867" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueNotFromContractWithCustomerExcludingInterestIncome_27e14694-c31b-4b3e-bdff-26ade35dc1ba" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RevenueNotFromContractWithCustomerExcludingInterestIncome"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_0bf6ba0e-a09e-459b-9923-a0fd6ee3bccb" xlink:to="loc_us-gaap_RevenueNotFromContractWithCustomerExcludingInterestIncome_27e14694-c31b-4b3e-bdff-26ade35dc1ba" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoninterestIncome_bb6db404-9c60-4458-966e-99e497d63d1a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NoninterestIncome"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_0bf6ba0e-a09e-459b-9923-a0fd6ee3bccb" xlink:to="loc_us-gaap_NoninterestIncome_bb6db404-9c60-4458-966e-99e497d63d1a" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.shbi.com/role/ParentCompanyFinancialInformationCondensedBalanceSheetsParentOnlyDetails" xlink:type="simple" xlink:href="shbi-20241231.xsd#ParentCompanyFinancialInformationCondensedBalanceSheetsParentOnlyDetails"/>
  <link:definitionLink xlink:role="http://www.shbi.com/role/ParentCompanyFinancialInformationCondensedBalanceSheetsParentOnlyDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_shbi_ParentCompanyFinancialInformationLineItems_332365e9-a4e2-4ee6-8a29-fa92dd20c38d" xlink:href="shbi-20241231.xsd#shbi_ParentCompanyFinancialInformationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_ParentCompanyFinancialInformationTable_9c69cf5f-0802-4a9c-8706-7d349b90f8b9" xlink:href="shbi-20241231.xsd#shbi_ParentCompanyFinancialInformationTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_shbi_ParentCompanyFinancialInformationLineItems_332365e9-a4e2-4ee6-8a29-fa92dd20c38d" xlink:to="loc_shbi_ParentCompanyFinancialInformationTable_9c69cf5f-0802-4a9c-8706-7d349b90f8b9" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidatedEntitiesAxis_2b44d897-8e63-490f-a955-1d542dc5a80a" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_ConsolidatedEntitiesAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_shbi_ParentCompanyFinancialInformationTable_9c69cf5f-0802-4a9c-8706-7d349b90f8b9" xlink:to="loc_srt_ConsolidatedEntitiesAxis_2b44d897-8e63-490f-a955-1d542dc5a80a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidatedEntitiesDomain_2b44d897-8e63-490f-a955-1d542dc5a80a_default" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_ConsolidatedEntitiesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidatedEntitiesAxis_2b44d897-8e63-490f-a955-1d542dc5a80a" xlink:to="loc_srt_ConsolidatedEntitiesDomain_2b44d897-8e63-490f-a955-1d542dc5a80a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidatedEntitiesDomain_9186451f-6f77-4ee5-8495-e37f175f6a85" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_ConsolidatedEntitiesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidatedEntitiesAxis_2b44d897-8e63-490f-a955-1d542dc5a80a" xlink:to="loc_srt_ConsolidatedEntitiesDomain_9186451f-6f77-4ee5-8495-e37f175f6a85" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ParentCompanyMember_d4f80710-256e-4c8b-ade0-27383063c8b6" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_ParentCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidatedEntitiesDomain_9186451f-6f77-4ee5-8495-e37f175f6a85" xlink:to="loc_srt_ParentCompanyMember_d4f80710-256e-4c8b-ade0-27383063c8b6" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsAbstract_60ba2ff7-fd0a-4afb-a840-0070429ca1a3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AssetsAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_shbi_ParentCompanyFinancialInformationLineItems_332365e9-a4e2-4ee6-8a29-fa92dd20c38d" xlink:to="loc_us-gaap_AssetsAbstract_60ba2ff7-fd0a-4afb-a840-0070429ca1a3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Cash_30034cdc-a9eb-4767-878c-3daaf30327e6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_Cash"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_60ba2ff7-fd0a-4afb-a840-0070429ca1a3" xlink:to="loc_us-gaap_Cash_30034cdc-a9eb-4767-878c-3daaf30327e6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityMethodInvestmentAggregateCost_6a8f1cb6-2d70-4e31-b385-a4c9e8ce97b6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquityMethodInvestmentAggregateCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_60ba2ff7-fd0a-4afb-a840-0070429ca1a3" xlink:to="loc_us-gaap_EquityMethodInvestmentAggregateCost_6a8f1cb6-2d70-4e31-b385-a4c9e8ce97b6" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssets_4eb60585-fa41-4afa-96b7-537c0284383b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_60ba2ff7-fd0a-4afb-a840-0070429ca1a3" xlink:to="loc_us-gaap_OtherAssets_4eb60585-fa41-4afa-96b7-537c0284383b" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_7822fc54-bb60-4664-83ed-7866be3cebb5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_Assets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_60ba2ff7-fd0a-4afb-a840-0070429ca1a3" xlink:to="loc_us-gaap_Assets_7822fc54-bb60-4664-83ed-7866be3cebb5" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_129529e9-62f5-47b2-aae7-003ca3977379" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LiabilitiesAndStockholdersEquityAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_shbi_ParentCompanyFinancialInformationLineItems_332365e9-a4e2-4ee6-8a29-fa92dd20c38d" xlink:to="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_129529e9-62f5-47b2-aae7-003ca3977379" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrentAndNoncurrent_8134eeb8-3561-4eaf-b996-4d98be4922a1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccruedLiabilitiesCurrentAndNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_129529e9-62f5-47b2-aae7-003ca3977379" xlink:to="loc_us-gaap_AccruedLiabilitiesCurrentAndNoncurrent_8134eeb8-3561-4eaf-b996-4d98be4922a1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_68bb469b-0a28-4742-a277-e488b3fc9a62" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredIncomeTaxLiabilitiesNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_129529e9-62f5-47b2-aae7-003ca3977379" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_68bb469b-0a28-4742-a277-e488b3fc9a62" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilities_9ef06db6-6c56-47d6-857a-02af3daebac6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherLiabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_129529e9-62f5-47b2-aae7-003ca3977379" xlink:to="loc_us-gaap_OtherLiabilities_9ef06db6-6c56-47d6-857a-02af3daebac6" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_d08d2d59-8786-41ff-b283-bc578195a280" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongTermDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_129529e9-62f5-47b2-aae7-003ca3977379" xlink:to="loc_us-gaap_LongTermDebt_d08d2d59-8786-41ff-b283-bc578195a280" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_a8a7ce76-2fa9-4833-8eae-19f247ccd6fe" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_Liabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_129529e9-62f5-47b2-aae7-003ca3977379" xlink:to="loc_us-gaap_Liabilities_a8a7ce76-2fa9-4833-8eae-19f247ccd6fe" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquityAbstract_f3ff66cf-621d-4864-877b-9529183d0d09" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StockholdersEquityAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_shbi_ParentCompanyFinancialInformationLineItems_332365e9-a4e2-4ee6-8a29-fa92dd20c38d" xlink:to="loc_us-gaap_StockholdersEquityAbstract_f3ff66cf-621d-4864-877b-9529183d0d09" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_69c67401-819c-49f9-958f-eb249f5ad81d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommonStockValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_f3ff66cf-621d-4864-877b-9529183d0d09" xlink:to="loc_us-gaap_CommonStockValue_69c67401-819c-49f9-958f-eb249f5ad81d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapitalCommonStock_250cc198-3b11-47dc-a1d6-312706839031" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AdditionalPaidInCapitalCommonStock"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_f3ff66cf-621d-4864-877b-9529183d0d09" xlink:to="loc_us-gaap_AdditionalPaidInCapitalCommonStock_250cc198-3b11-47dc-a1d6-312706839031" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_ba464bd6-234b-430d-a0d8-28948e3438f3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RetainedEarningsAccumulatedDeficit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_f3ff66cf-621d-4864-877b-9529183d0d09" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_ba464bd6-234b-430d-a0d8-28948e3438f3" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_b12fb5ab-efc2-4ac1-b606-dd903c422976" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_f3ff66cf-621d-4864-877b-9529183d0d09" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_b12fb5ab-efc2-4ac1-b606-dd903c422976" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_6b5ac02d-b362-4073-95c5-53617e25ece1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StockholdersEquity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_f3ff66cf-621d-4864-877b-9529183d0d09" xlink:to="loc_us-gaap_StockholdersEquity_6b5ac02d-b362-4073-95c5-53617e25ece1" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_be9aa5a2-c0d0-43d1-b9e2-0fb0143305c5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_shbi_ParentCompanyFinancialInformationLineItems_332365e9-a4e2-4ee6-8a29-fa92dd20c38d" xlink:to="loc_us-gaap_LiabilitiesAndStockholdersEquity_be9aa5a2-c0d0-43d1-b9e2-0fb0143305c5" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.shbi.com/role/ParentCompanyFinancialInformationCondensedStatementsofIncomeParentOnlyDetails" xlink:type="simple" xlink:href="shbi-20241231.xsd#ParentCompanyFinancialInformationCondensedStatementsofIncomeParentOnlyDetails"/>
  <link:definitionLink xlink:role="http://www.shbi.com/role/ParentCompanyFinancialInformationCondensedStatementsofIncomeParentOnlyDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_shbi_ParentCompanyFinancialInformationLineItems_ea4b65fd-fa0e-427c-bc22-a41ab20d99c9" xlink:href="shbi-20241231.xsd#shbi_ParentCompanyFinancialInformationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_ParentCompanyFinancialInformationTable_123ab3ef-c657-4f8d-9935-549f842d3ef2" xlink:href="shbi-20241231.xsd#shbi_ParentCompanyFinancialInformationTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_shbi_ParentCompanyFinancialInformationLineItems_ea4b65fd-fa0e-427c-bc22-a41ab20d99c9" xlink:to="loc_shbi_ParentCompanyFinancialInformationTable_123ab3ef-c657-4f8d-9935-549f842d3ef2" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidatedEntitiesAxis_a69b50a7-1ee3-4429-81cd-e64fef5d8601" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_ConsolidatedEntitiesAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_shbi_ParentCompanyFinancialInformationTable_123ab3ef-c657-4f8d-9935-549f842d3ef2" xlink:to="loc_srt_ConsolidatedEntitiesAxis_a69b50a7-1ee3-4429-81cd-e64fef5d8601" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidatedEntitiesDomain_a69b50a7-1ee3-4429-81cd-e64fef5d8601_default" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_ConsolidatedEntitiesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidatedEntitiesAxis_a69b50a7-1ee3-4429-81cd-e64fef5d8601" xlink:to="loc_srt_ConsolidatedEntitiesDomain_a69b50a7-1ee3-4429-81cd-e64fef5d8601_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidatedEntitiesDomain_1533a212-e20d-4f2c-8ac8-4803fe084f13" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_ConsolidatedEntitiesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidatedEntitiesAxis_a69b50a7-1ee3-4429-81cd-e64fef5d8601" xlink:to="loc_srt_ConsolidatedEntitiesDomain_1533a212-e20d-4f2c-8ac8-4803fe084f13" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ParentCompanyMember_2c9e8cef-880b-4c51-94c3-2838682c79b1" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_ParentCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidatedEntitiesDomain_1533a212-e20d-4f2c-8ac8-4803fe084f13" xlink:to="loc_srt_ParentCompanyMember_2c9e8cef-880b-4c51-94c3-2838682c79b1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_DividendsFromSubsidiaries_a604f657-0c79-4715-aa34-056f1a42136d" xlink:href="shbi-20241231.xsd#shbi_DividendsFromSubsidiaries"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_shbi_ParentCompanyFinancialInformationLineItems_ea4b65fd-fa0e-427c-bc22-a41ab20d99c9" xlink:to="loc_shbi_DividendsFromSubsidiaries_a604f657-0c79-4715-aa34-056f1a42136d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainOrLossOnSaleOfStockInSubsidiary_402680ab-6868-4fc5-9a1d-d7cf83d53bbf" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_GainOrLossOnSaleOfStockInSubsidiary"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_shbi_ParentCompanyFinancialInformationLineItems_ea4b65fd-fa0e-427c-bc22-a41ab20d99c9" xlink:to="loc_us-gaap_GainOrLossOnSaleOfStockInSubsidiary_402680ab-6868-4fc5-9a1d-d7cf83d53bbf" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationBargainPurchaseGainRecognizedAmount_dac4b0c0-594b-404a-b3a3-cfab4a13d57b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BusinessCombinationBargainPurchaseGainRecognizedAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_shbi_ParentCompanyFinancialInformationLineItems_ea4b65fd-fa0e-427c-bc22-a41ab20d99c9" xlink:to="loc_us-gaap_BusinessCombinationBargainPurchaseGainRecognizedAmount_dac4b0c0-594b-404a-b3a3-cfab4a13d57b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIncomeInterest_374cb368-ea90-4881-a2c1-284c34fad523" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentIncomeInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_shbi_ParentCompanyFinancialInformationLineItems_ea4b65fd-fa0e-427c-bc22-a41ab20d99c9" xlink:to="loc_us-gaap_InvestmentIncomeInterest_374cb368-ea90-4881-a2c1-284c34fad523" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostsAndExpensesAbstract_36be49c4-58e9-46f9-a1a9-5c8a26c9b132" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CostsAndExpensesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_shbi_ParentCompanyFinancialInformationLineItems_ea4b65fd-fa0e-427c-bc22-a41ab20d99c9" xlink:to="loc_us-gaap_CostsAndExpensesAbstract_36be49c4-58e9-46f9-a1a9-5c8a26c9b132" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseOperating_51e58d67-af24-4f18-9f9b-4558dd510d3d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InterestExpenseOperating"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CostsAndExpensesAbstract_36be49c4-58e9-46f9-a1a9-5c8a26c9b132" xlink:to="loc_us-gaap_InterestExpenseOperating_51e58d67-af24-4f18-9f9b-4558dd510d3d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LaborAndRelatedExpense_a50c573d-6e6c-4ac6-94d7-56ab29232dcc" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LaborAndRelatedExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CostsAndExpensesAbstract_36be49c4-58e9-46f9-a1a9-5c8a26c9b132" xlink:to="loc_us-gaap_LaborAndRelatedExpense_a50c573d-6e6c-4ac6-94d7-56ab29232dcc" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_OccupancyAndEquipmentExpense_21a72ee8-39c7-4cc0-95fc-724ed1e21d52" xlink:href="shbi-20241231.xsd#shbi_OccupancyAndEquipmentExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CostsAndExpensesAbstract_36be49c4-58e9-46f9-a1a9-5c8a26c9b132" xlink:to="loc_shbi_OccupancyAndEquipmentExpense_21a72ee8-39c7-4cc0-95fc-724ed1e21d52" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_LegalAndProfessionalFeesIncludingMergerExpenses_8edf136e-02e2-43f9-bf37-793e0419c362" xlink:href="shbi-20241231.xsd#shbi_LegalAndProfessionalFeesIncludingMergerExpenses"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CostsAndExpensesAbstract_36be49c4-58e9-46f9-a1a9-5c8a26c9b132" xlink:to="loc_shbi_LegalAndProfessionalFeesIncludingMergerExpenses_8edf136e-02e2-43f9-bf37-793e0419c362" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCostAndExpenseOperating_b22acd51-9c38-4811-b833-745a877c7798" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherCostAndExpenseOperating"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CostsAndExpensesAbstract_36be49c4-58e9-46f9-a1a9-5c8a26c9b132" xlink:to="loc_us-gaap_OtherCostAndExpenseOperating_b22acd51-9c38-4811-b833-745a877c7798" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingCostsAndExpenses_375a9c2c-a7e1-4b3c-bea1-3a8230ece0c8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OperatingCostsAndExpenses"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CostsAndExpensesAbstract_36be49c4-58e9-46f9-a1a9-5c8a26c9b132" xlink:to="loc_us-gaap_OperatingCostsAndExpenses_375a9c2c-a7e1-4b3c-bea1-3a8230ece0c8" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_190f9275-7aa5-4504-bcab-1174c4b0d6a2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_shbi_ParentCompanyFinancialInformationLineItems_ea4b65fd-fa0e-427c-bc22-a41ab20d99c9" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_190f9275-7aa5-4504-bcab-1174c4b0d6a2" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_8925565d-11f7-4993-a713-23933ce738b7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_shbi_ParentCompanyFinancialInformationLineItems_ea4b65fd-fa0e-427c-bc22-a41ab20d99c9" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_8925565d-11f7-4993-a713-23933ce738b7" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsIncludingPortionAttributableToNoncontrollingInterest_61d8fae7-ea74-4c0d-bd29-4a879c054876" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeLossFromContinuingOperationsIncludingPortionAttributableToNoncontrollingInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_shbi_ParentCompanyFinancialInformationLineItems_ea4b65fd-fa0e-427c-bc22-a41ab20d99c9" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsIncludingPortionAttributableToNoncontrollingInterest_61d8fae7-ea74-4c0d-bd29-4a879c054876" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromSubsidiariesNetOfTax_a540eab7-5ad7-4898-ab97-8141262e508f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeLossFromSubsidiariesNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_shbi_ParentCompanyFinancialInformationLineItems_ea4b65fd-fa0e-427c-bc22-a41ab20d99c9" xlink:to="loc_us-gaap_IncomeLossFromSubsidiariesNetOfTax_a540eab7-5ad7-4898-ab97-8141262e508f" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_ce524153-0165-4bf5-aae4-7e1f2d8cfa0f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_shbi_ParentCompanyFinancialInformationLineItems_ea4b65fd-fa0e-427c-bc22-a41ab20d99c9" xlink:to="loc_us-gaap_NetIncomeLoss_ce524153-0165-4bf5-aae4-7e1f2d8cfa0f" xlink:type="arc" order="9"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.shbi.com/role/ParentCompanyFinancialInformationCondensedStatementsofCashFlowsParentOnlyDetails" xlink:type="simple" xlink:href="shbi-20241231.xsd#ParentCompanyFinancialInformationCondensedStatementsofCashFlowsParentOnlyDetails"/>
  <link:definitionLink xlink:role="http://www.shbi.com/role/ParentCompanyFinancialInformationCondensedStatementsofCashFlowsParentOnlyDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_shbi_ParentCompanyFinancialInformationLineItems_396a6ea8-4c75-450c-9e3f-9467ad2827c9" xlink:href="shbi-20241231.xsd#shbi_ParentCompanyFinancialInformationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_shbi_ParentCompanyFinancialInformationTable_e3332c66-08d9-4ad1-8b62-f73cde0697be" xlink:href="shbi-20241231.xsd#shbi_ParentCompanyFinancialInformationTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_shbi_ParentCompanyFinancialInformationLineItems_396a6ea8-4c75-450c-9e3f-9467ad2827c9" xlink:to="loc_shbi_ParentCompanyFinancialInformationTable_e3332c66-08d9-4ad1-8b62-f73cde0697be" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidatedEntitiesAxis_c523a7f6-a921-4564-93e6-f34133a0a47b" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_ConsolidatedEntitiesAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_shbi_ParentCompanyFinancialInformationTable_e3332c66-08d9-4ad1-8b62-f73cde0697be" xlink:to="loc_srt_ConsolidatedEntitiesAxis_c523a7f6-a921-4564-93e6-f34133a0a47b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidatedEntitiesDomain_c523a7f6-a921-4564-93e6-f34133a0a47b_default" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_ConsolidatedEntitiesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidatedEntitiesAxis_c523a7f6-a921-4564-93e6-f34133a0a47b" xlink:to="loc_srt_ConsolidatedEntitiesDomain_c523a7f6-a921-4564-93e6-f34133a0a47b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidatedEntitiesDomain_178fcac0-7a51-43b6-bfbd-5c68def2030a" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_ConsolidatedEntitiesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidatedEntitiesAxis_c523a7f6-a921-4564-93e6-f34133a0a47b" xlink:to="loc_srt_ConsolidatedEntitiesDomain_178fcac0-7a51-43b6-bfbd-5c68def2030a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ParentCompanyMember_1db2ba2a-96eb-444e-916e-8a9d163632f2" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_ParentCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidatedEntitiesDomain_178fcac0-7a51-43b6-bfbd-5c68def2030a" xlink:to="loc_srt_ParentCompanyMember_1db2ba2a-96eb-444e-916e-8a9d163632f2" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperationsAbstract_19f4b626-f3d6-4515-b27a-07ccd3c533a1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperationsAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_shbi_ParentCompanyFinancialInformationLineItems_396a6ea8-4c75-450c-9e3f-9467ad2827c9" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperationsAbstract_19f4b626-f3d6-4515-b27a-07ccd3c533a1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_002f9c5a-c072-467c-892b-059573debccb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProfitLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperationsAbstract_19f4b626-f3d6-4515-b27a-07ccd3c533a1" xlink:to="loc_us-gaap_ProfitLoss_002f9c5a-c072-467c-892b-059573debccb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_fe38ecec-c943-437f-be3c-11089e7a0a7a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperationsAbstract_19f4b626-f3d6-4515-b27a-07ccd3c533a1" xlink:to="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_fe38ecec-c943-437f-be3c-11089e7a0a7a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromEquityMethodInvestments_f7403c9a-7038-416c-a757-d6563db68a01" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeLossFromEquityMethodInvestments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_fe38ecec-c943-437f-be3c-11089e7a0a7a" xlink:to="loc_us-gaap_IncomeLossFromEquityMethodInvestments_f7403c9a-7038-416c-a757-d6563db68a01" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationBargainPurchaseGainRecognizedAmount_dc9da63c-7735-4670-b11e-4450056228c8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BusinessCombinationBargainPurchaseGainRecognizedAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_fe38ecec-c943-437f-be3c-11089e7a0a7a" xlink:to="loc_us-gaap_BusinessCombinationBargainPurchaseGainRecognizedAmount_dc9da63c-7735-4670-b11e-4450056228c8" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfFinancingCosts_4ed778f4-8e14-401d-ab24-e9eeccd29e2b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AmortizationOfFinancingCosts"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_fe38ecec-c943-437f-be3c-11089e7a0a7a" xlink:to="loc_us-gaap_AmortizationOfFinancingCosts_4ed778f4-8e14-401d-ab24-e9eeccd29e2b" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_a9b00173-bced-4580-be8e-53f6dd2f2e33" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_fe38ecec-c943-437f-be3c-11089e7a0a7a" xlink:to="loc_us-gaap_ShareBasedCompensation_a9b00173-bced-4580-be8e-53f6dd2f2e33" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BankOwnedLifeInsuranceIncome_81762824-bc35-47de-92e5-941a6b21133d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BankOwnedLifeInsuranceIncome"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_fe38ecec-c943-437f-be3c-11089e7a0a7a" xlink:to="loc_us-gaap_BankOwnedLifeInsuranceIncome_81762824-bc35-47de-92e5-941a6b21133d" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationContingentConsiderationArrangementsChangeInAmountOfContingentConsiderationAsset1_9743b285-b726-4c40-86ae-e4c82fd38e8b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BusinessCombinationContingentConsiderationArrangementsChangeInAmountOfContingentConsiderationAsset1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_fe38ecec-c943-437f-be3c-11089e7a0a7a" xlink:to="loc_us-gaap_BusinessCombinationContingentConsiderationArrangementsChangeInAmountOfContingentConsiderationAsset1_9743b285-b726-4c40-86ae-e4c82fd38e8b" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_b8e24b01-0874-49dd-b807-06de019bfe9c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInOtherOperatingAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_fe38ecec-c943-437f-be3c-11089e7a0a7a" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_b8e24b01-0874-49dd-b807-06de019bfe9c" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingLiabilities_32fb2b28-5641-4648-9521-48df738f18b9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInOtherOperatingLiabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_fe38ecec-c943-437f-be3c-11089e7a0a7a" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingLiabilities_32fb2b28-5641-4648-9521-48df738f18b9" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_d3ab8d19-aa3f-4060-8128-d6b67c8f3883" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_fe38ecec-c943-437f-be3c-11089e7a0a7a" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_d3ab8d19-aa3f-4060-8128-d6b67c8f3883" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesContinuingOperationsAbstract_f40ad80b-7373-4ed4-ae9e-2557ee8fe4b4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivitiesContinuingOperationsAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_shbi_ParentCompanyFinancialInformationLineItems_396a6ea8-4c75-450c-9e3f-9467ad2827c9" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesContinuingOperationsAbstract_f40ad80b-7373-4ed4-ae9e-2557ee8fe4b4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireLifeInsurancePolicies_3c8ac849-ff7a-4e75-8898-c55d9d7b71a0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PaymentsToAcquireLifeInsurancePolicies"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesContinuingOperationsAbstract_f40ad80b-7373-4ed4-ae9e-2557ee8fe4b4" xlink:to="loc_us-gaap_PaymentsToAcquireLifeInsurancePolicies_3c8ac849-ff7a-4e75-8898-c55d9d7b71a0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_1a9c57a3-36d2-4197-963a-25be562ef3d7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesContinuingOperationsAbstract_f40ad80b-7373-4ed4-ae9e-2557ee8fe4b4" xlink:to="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_1a9c57a3-36d2-4197-963a-25be562ef3d7" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_f42864e0-0e2b-4f76-9a17-64255a592e17" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesContinuingOperationsAbstract_f40ad80b-7373-4ed4-ae9e-2557ee8fe4b4" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_f42864e0-0e2b-4f76-9a17-64255a592e17" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperationsAbstract_ac30cc09-dba3-4ef3-8962-7975c01a0cd1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperationsAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_shbi_ParentCompanyFinancialInformationLineItems_396a6ea8-4c75-450c-9e3f-9467ad2827c9" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperationsAbstract_ac30cc09-dba3-4ef3-8962-7975c01a0cd1" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDividendsCommonStock_965e1331-a7a6-449a-9b49-de1cbddeebf1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PaymentsOfDividendsCommonStock"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperationsAbstract_ac30cc09-dba3-4ef3-8962-7975c01a0cd1" xlink:to="loc_us-gaap_PaymentsOfDividendsCommonStock_965e1331-a7a6-449a-9b49-de1cbddeebf1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlans_93f8e353-9ac4-420e-8832-07a5d2d34d7a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlans"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperationsAbstract_ac30cc09-dba3-4ef3-8962-7975c01a0cd1" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlans_93f8e353-9ac4-420e-8832-07a5d2d34d7a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_db04d877-fcb6-4b31-b01a-8dc437ae97ab" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperationsAbstract_ac30cc09-dba3-4ef3-8962-7975c01a0cd1" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_db04d877-fcb6-4b31-b01a-8dc437ae97ab" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_4acf3f56-92e0-40ac-ba0e-b6456c0afdfa" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperationsAbstract_ac30cc09-dba3-4ef3-8962-7975c01a0cd1" xlink:to="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_4acf3f56-92e0-40ac-ba0e-b6456c0afdfa" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_48e17aef-7449-481f-821f-056e7a79596a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperationsAbstract_ac30cc09-dba3-4ef3-8962-7975c01a0cd1" xlink:to="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_48e17aef-7449-481f-821f-056e7a79596a" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_92589e6d-7cc8-483b-8d8f-7e04c9b15c13" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://fasb.org/us-gaap/role/eedm/ExtensibleEnumerationLists" xlink:type="simple" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-roles-2024.xsd#eedm"/>
  <link:definitionLink xlink:role="http://fasb.org/us-gaap/role/eedm/ExtensibleEnumerationLists" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsAbstract" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AssetsAbstract"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestReceivable" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InterestReceivable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract" xlink:to="loc_us-gaap_InterestReceivable" xlink:type="arc" order="101"/>
  </link:definitionLink>
</link:linkbase>
