Bugs
(מא) וְכָל־הַשֶּׁ֖רֶץ הַשֹּׁרֵ֣ץ עַל־הָאָ֑רֶץ שֶׁ֥קֶץ ה֖וּא לֹ֥א יֵאָכֵֽל׃
(41) All the things that swarm upon the earth are an abomination; they shall not be eaten.
(מא) השרץ על הארץ. לְהוֹצִיא אֶת הַיִּתּוּשִׁין שֶׁבַּכְּלִיסִין וְשֶׁבַּפּוֹלִין, וְאֶת הַזִּיזִין שֶׁבַּעֲדָשִׁים, שֶׁהֲרֵי לֹא שָׁרְצוּ עַל הָאָרֶץ אֶלָּא בְּתוֹךְ הָאוֹכֶל, אֲבָל מִשֶּׁיָּצְאוּ לָאֲוֵיר וְשָׁרְצוּ הֲרֵי נֶאֱסְרוּ (ספרא; חולין ס"ז) :
(41) ‎‎‎‏על הארץ ‎ושרץ THAT CREEPETH ON THE EARTH — the law is worded thus in order to exclude the insects in peas and in beans and the mites in lentils, for, you see, these do not move about on the ground but inside the food, but so soon as they have emerged into the air and have moved about they become prohibited to be eaten (Sifra, Shemini, Chapter 12 1; Chullin 67b).
על הארץ להוציא את הזיזין שבעדשים ואת היתושים שבכליסים ותולעת שבתמרים ושבגרוגרות
להוציא זיזין שבעדשים - דמותרים דלאו על הארץ שורצין אלא בתוך העדשה:

(ד) תּוֹלָעִים הַגְּדֵלִים בַּפֵּרוֹת, בְּתָלוּשׁ, מֻתָּרִים. שֶׁלֹּא אָסְרָה תּוֹרָה אֶלָּא שֶׁרֶץ הַשּׁוֹרֵץ עַל הָאָרֶץ. בַּמֶּה דְּבָרִים אֲמוּרִים, שֶׁלֹּא פֵּרְשׁוּ מִן הַפְּרִי. אֲבָל פֵּרְשׁוּ מִן הַפְּרִי, אֲפִלּוּ לֹא הִגִּיעַ לָאָרֶץ אֶלָּא שֶׁמֵּת בָּאֲוִיר קֹדֶם שֶׁהִגִּיעַ לָאָרֶץ, וַאֲפִלּוּ לֹא פֵּרֵשׁ כֻּלּוֹ מֵהַפְּרִי אֶלָּא מִקְצָתוֹ, אוֹ שֶׁלֹּא פֵּרֵשׁ אֶלָּא עַל גַּבֵּי הַפְּרִי אוֹ עַל הַגַּרְעִין שֶׁבְּתוֹכוֹ, אוֹ שֶׁפֵּרֵשׁ מִפְּרִי לִפְרִי, אָסוּר. וְיֵשׁ אוֹסְרִים אֲפִלּוּ מֵת בְּתוֹךְ הַפְּרִי וּפֵרֵשׁ אַחַר כָּךְ. כָּל זְמַן שֶׁנִּמְצָא בְּתוֹךְ הַפְּרִי, אֲפִלּוּ חֹרוֹ נָקוּב לַחוּץ, לֹא חַיְישִׁינָן שֶׁמָּא פֵּרֵשׁ וְחָזַר. וְיֵשׁ אוֹסְרִים אִם חֹרוֹ נָקוּב לַחוּץ (מָרְדְּכַי פא''ט וְש''ד בְּשֵׁם ראב''ן וְר' אבי''ה בְּשֵׁם ר' יוֹאֵל הוּבָא בת''ה סי' קע''א) וְהָכֵי נָהוּג (ת''ה שָׁם וּבְהַגָּהַת ש''ד).

(4) Worms that grow in fruit, in picked [fruit], they are permitted. The Torah only forbade crawling things that crawl on land. To what are we referring, when they did not leave the fruit. But if they left the fruit, even if it did not reach the land rather it dead in the air before it reached the ground, even if it did not entirely leave the fruit, only a little, or it only left onto the fruit, or on the seed that is inside, or if it left from fruit to fruit, it is forbidden. And there are those who say even if it died within the fruit and left afterwards. Any time that it is found within the fruit, even a hole bored to the outside, we are not concerned lest it left and returned. There are those who forbid if the hole bored to the outside (Moredechai PA''T and Sh''D in the name of RAB''N and Rabbi ABI''H in the name of Rabbi Yoel Huvah BT''H Siman 171) and this is how we are accustomed (Terumat HaDeshen ibid. and Hagahot SH''D.