Upgrade to Pro — share decks privately, control downloads, hide ads and more …

プロダクション環境での Amazon Bedrock 利用とセキュリティの考慮点 / Amaz...

プロダクション環境での Amazon Bedrock 利用とセキュリティの考慮点 / Amazon Bedrock Security in Production

Anthropic Claude や Meta Llama を AWS で、本番環境で Amazon Bedrock をセキュアに利用するための事例イベント。
株式会社Poetics、株式会社スタディスト、株式会社Conoris Technologiesによる登壇もありました。

Yoshitaka Haribara

July 31, 2024
Tweet

More Decks by Yoshitaka Haribara

Other Decks in Technology

Transcript

  1. ˜ "NB[PO8FC4FSWJDFT *ODPSJUTBGGJMJBUFT"MMSJHIUTSFTFSWFE ϓϩμΫγϣϯ؀ڥͰͷ "NB[PO#FESPDLར༻ͱ ηΩϡϦςΟͷߟྀ఺ ਑ݪ Ղو J U

    L 3 1 , 2 0 2 4 γχΞ ελʔτΞοϓ ػցֶश ιϦϡʔγϣϯΞʔΩςΫτ ΞϚκϯ ΢Σϒ αʔϏε δϟύϯ 
  2. ˜ "NB[PO8FC4FSWJDFT *ODPSJUTBGGJMJBUFT"MMSJHIUTSFTFSWFE 4VNNBSJ[BUJPO  DPNQMFYSFBTPOJOH  XSJUJOH DPEJOH $POUFYUVBM

    BOTXFST  TVNNBSJ[BUJPO  QBSBQISBTJOH )JHIRVBMJUZJNBHFT BOEBSU 5FYUHFOFSBUJPO  TFBSDI  DMBTTJGJDBUJPO 2"BOESFBEJOH DPNQSFIFOTJPO 5FYU TVNNBSJ[BUJPO  HFOFSBUJPO  2" TFBSDI  JNBHFHFOFSBUJPO "NB[PO5JUBO 5FYU1SFNJFS "NB[PO5JUBO 5FYU-JUF "NB[PO5JUBO 5FYU&YQSFTT "NB[PO5JUBO5FYU &NCFEEJOHT "NB[PO5JUBO5FYU &NCFEEJOHT7 "NB[PO5JUBO .VMUJNPEBM &NCFEEJOHT "NB[PO5JUBO *NBHF(FOFSBUPS $MBVEF4POOFU $MBVEF0QVT $MBVEF4POOFU $MBVEF)BJLV $MBVEF $MBVEF $MBVEF*OTUBOU -MBNB -MBNB# -MBNB# -MBNB# -MBNB# $PNNBOE $PNNBOE-JHIU &NCFE&OHMJTI &NCFE.VMUJMJOHVBM $PNNBOE3 $PNNBOE3  4UBCMF%JGGVTJPO 9- 4UBCMF%JGGVTJPO 9- +BNCB*OTUSVDU +VSBTTJD6MUSB +VSBTTJD.JE .JTUSBM-BSHF  .JTUSBM-BSHF  .JTUSBM4NBMM .JYUSBMY# .JTUSBM# 5FYU TVNNBSJ[BUJPO UFYU DMBTTJGJDBUJPO  UFYUDPNQMFUJPO  DPEFHFOFSBUJPO  2" ج ൫ Ϟ σ ϧ ɾ େ ن ໛ ݴ ޠ Ϟ σ ϧ - - .  ͷ બ ୒ ࢶ "NB[PO#FESPDL $MBVEF ౦ژϦʔδϣϯ $PNJOHTPPOʜ
  3. ˜ "NB[PO8FC4FSWJDFT *ODPSJUTBGGJMJBUFT"MMSJHIUTSFTFSWFE "NB[PO ͸σʔλΛηΩϡΞ ͔ͭϓϥΠϕʔτʹ ͓٬༷ͷσʔλ͸ɺ ج൫ϞσϧͷτϨʔχϯάʹ͸ Ұ੾࢖༻͞Ε·ͤΜɻ ͢΂ͯͷσʔλ͸ɺ

    సૹ࣌ʹ5-4Λ࢖༻ͯ͠҉߸Խɺ อଘ࣌͸"84,.4Λ࢖༻ͯ͠҉߸Խɻ "NB[POϚωʔδυΩʔ·ͨ͸ ΧελϚʔϚωʔδυΩʔ $., ΋αϙʔτɻ ϑΝΠϯνϡʔχϯά͞ΕͨϞσϧ͸ɺ ͓٬༷ͷ"84,.4ΩʔΛ࢖༻ͯ͠ ҉߸Խ͓Αͼอଘ͞Ε·͢ɻ ΧελϚΠζ͞ΕͨϞσϧʹΞΫηεͰ͖Δͷ͸ ͓٬༷͚ͩͰ͢ɻ "84*EFOUJUZBOE"DDFTT.BOBHFNFOU *". ͱͷ౷߹ʹΑΓɺ ͖Ίࡉ͔ͳΞΫηε੍ޚ͕Մೳɻ (%13 )*1"" 1$*ΛؚΉ ίϯϓϥΠΞϯεج४Λαϙʔτɻ
  4. ˜ "NB[PO8FC4FSWJDFT *ODPSJUTBGGJMJBUFT"MMSJHIUTSFTFSWFE "1*ΞΫςΟϏςΟΛ؂ࢹ͠໰ ୊ͷτϥϒϧγϡʔςΟϯά ར༻ঢ়گͷϝτϦΫεΛ௥੻͠ ΧελϚΠζ͞Εͨ μογϡϘʔυΛߏங 'FE3".1.PEFSBUF 

    (%13 40$ *40  $4" )*1"" "NB[PO $MPVE8BUDI ͱͷ౷߹ "84$MPVE5SBJM ͱͷ౷߹ $PNQMJBODF ϑϨʔϜϫʔΫ ϞχλϦϯάͱίϯϓϥΠΞϯε "NB[PO
  5. ˜ "NB[PO8FC4FSWJDFT *ODPSJUTBGGJMJBUFT"MMSJHIUTSFTFSWFE *".ʹΑΔ"NB[PO#FESPDLͷΞΫηεڐՄ *". { "Version": "2012-10-17", "Statement": {

    "Sid": "AllowInference", "Effect": "Allow", "Action": [ "bedrock:InvokeModel", "bedrock:InvokeModelWithResponseStream" ], "Resource": "arn:aws:bedrock:*::foundation- model/model-id" } } "MMPXϙϦγʔͷྫ %FOZϙϦγʔͷྫ { "Version": "2012-10-17", "Statement": { "Sid": "DenyInference", "Effect": "Deny", "Action": [ "bedrock:InvokeModel", "bedrock:InvokeModelWithResponseStream" ], "Resource": "arn:aws:bedrock:*::foundation- model/model-id" } }
  6. ˜ "NB[PO8FC4FSWJDFT *ODPSJUTBGGJMJBUFT"MMSJHIUTSFTFSWFE 0OEFNBOEWT1SPWJTJPOFEϞʔυ ڞ௨͢Δಛ௃ εϧʔϓοτΛߪೖɻ ࣌ؒ͝ͱͷ՝ۚɺ ϲ݄PSϲ݄ͷ ίϛοτ΋Մೳ ϕʔεϥΠϯϞσϧͷ

    ϓϥΠϕʔτͳίϐʔ ϑΝΠϯνϡʔχϯάࡁͷ έʔε΋ ϦΫΤετͷ ೖग़ྗτʔΫϯ՝ۚ ରԠϞσϧͷ ϕʔεϥΠϯ όʔγϣϯΛอ࣋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B[PO8FC4FSWJDFT *ODPSJUTBGGJMJBUFT"MMSJHIUTSFTFSWFE 0OEFNBOEΞΫηεΞʔΩςΫνϟ "1* ΤϯυϙΠϯτ "NB[PO#FESPDLαʔϏεΞΧ΢ϯτ "NB[PO#FESPDLαʔϏε .BOBHFNFOUDPOTPMF 4%,T

    "1*ͳͲ ͔ΒͷྲྀೖτϥϑΟοΫ ਪ࿦3VOUJNF ϞσϧσϓϩΠΞΧ΢ϯτ "84͕ॴ༗ɾӡ༻ "84$MPVE5SBJM *". BOE"NB[PO$MPVE8BUDI ͳͲ΁ͷΞΫηε ϕʔεϞσϧ 4όέοτ 0OEFNBOE ίϯϐϡʔτ
  10. ˜ "NB[PO8FC4FSWJDFT *ODPSJUTBGGJMJBUFT"MMSJHIUTSFTFSWFE 1SPWJTJPOFEDBQBDJUZΞΫηεΞʔΩςΫνϟ "1* ΤϯυϙΠϯτ "NB[PO#FESPDLαʔϏεΞΧ΢ϯτ "NB[PO#FESPDLαʔϏε .BOBHFNFOUDPOTPMF 4%,T

    "1*ͳͲ ͔ΒͷྲྀೖτϥϑΟοΫ ਪ࿦3VOUJNF ϞσϧσϓϩΠΞΧ΢ϯτ "84͕ॴ༗ɾӡ༻ "84$MPVE5SBJM *". BOE"NB[PO$MPVE8BUDI ͳͲ΁ͷΞΫηε 'JOFUVOFࡁϞσϧ 4όέοτ ϕʔεϞσϧ 4όέοτ 1SPWJTJPOFE DBQBDJUZ ίϯϐϡʔτ lಛఆ NPEFM*%·ͨ͸ "3/Λࢦఆz
  11. ˜ "NB[PO8FC4FSWJDFT *ODPSJUTBGGJMJBUFT"MMSJHIUTSFTFSWFE ϞσϧpOFUVOJOHΞʔΩςΫνϟ τϨʔχϯά ΦʔέετϨʔγϣϯ ϞσϧσϓϩΠΞΧ΢ϯτ "84͕ॴ༗ɾӡ༻ "NB[PO 4BHF.BLFS

    USBJOJOH 'JOFUVOFࡁϞσϧ 4όέοτ ϕʔεϞσϧ 4όέοτ ސ٬ΞΧ΢ϯτ ֶशσʔλ 4όέοτ 71$ "1* ΤϯυϙΠϯτ "NB[PO#FESPDLαʔϏεΞΧ΢ϯτ "NB[PO#FESPDLαʔϏε .BOBHFNFOUDPOTPMF 4%,T "1*ͳͲ ͔ΒͷྲྀೖτϥϑΟοΫ "84$MPVE5SBJM *". BOE"NB[PO$MPVE8BUDI ͳͲ΁ͷΞΫηε
  12. ˜ "NB[PO8FC4FSWJDFT *ODPSJUTBGGJMJBUFT"MMSJHIUTSFTFSWFE ੜ੒"*ΞϓϦέʔγϣϯߏஙʹ͓͚Δ՝୊ ϓϥΠόγʔอޢ Ϣʔβʔ৘ใ΍ ػີσʔλΛอޢ όΠΞεɾ εςϨΦλΠϓ ภͬͨ݁Ռ΍

    ෆެฏͳ Ϣʔβʔମݧ ๬·͘͠ͳ͍ɺຢ͸ ؔ܎ͳ͍τϐοΫ ඍົͳΫΤϦɾԠ౴ ༗֐ੑɾ҆શੑ ϒϥϯυᆝଛϦεΫ ༗֐·ͨ͸ ߈ܸతͳԠ౴ ૊৫ݻ༗ͷηΩϡϦςΟɾίϯϓϥΠΞϯε ҟͳΔϞσϧʹ͓͍ͯɺҰ؏ͨ͠ϓϩϯϓτͱԠ౴ͷίϯτϩʔϧ
  13. ˜ "NB[PO8FC4FSWJDFT *ODPSJUTBGGJMJBUFT"MMSJHIUTSFTFSWFE (VBSESBJMT GPS"NB[PO #FESPDL ੹೚͋Δ"*ϙϦγʔʹج͖ͮ ༗֐ͳίϯςϯπͷϑΟϧλϦϯά ؆ܿͳࣗવݴޠදݱʹΑΓɺ ڋ൱τϐοΫΛఆٛ

    ج൫ϞσϧͷԠ౴͔Βɺ ݸਓ৘ใͳͲηϯγςΟϒͳ৘ใΛআڈɻ ಛఆͷ୯ޠ΍ਖ਼نදݱʹΑΔϑΟϧλʔ΋ ΞϓϦέʔγϣϯཁ݅ͱ ੹೚͋Δ"*ϙϦγʔʹԠͯ͡ ΧελϚΠζՄೳͳΨʔυϨʔϧΛ࣮૷ ෳ਺ج൫ϞσϧΛԣஅ͠ɺ "*ΤʔδΣϯτʹ΋ద༻ՄೳͳΨʔυϨʔϧ
  14. ˜ "NB[PO8FC4FSWJDFT *ODPSJUTBGGJMJBUFT"MMSJHIUTSFTFSWFE Thank you! ਑ݪ Ղو γχΞ ελʔτΞοϓ ػցֶश

    ιϦϡʔγϣϯΞʔΩςΫτ ΞϚκϯ ΢Σϒ αʔϏε δϟύϯ  υΩϡϝϯτ "NB[PO#FESPDLͷ ηΩϡϦςΟͱϓϥΠόγʔ